Commit Graph

  • d07bf029b7 tests: Add small testcase for 3-arg slices. Paul Sokolovsky 2014-05-25 22:17:06 +03:00
  • d8675541a9 py, vm: Where possible, make variables local to each opcode. Damien George 2014-05-25 22:58:04 +01:00
  • f600a6a085 py: Slightly improve efficiency of mp_obj_new_str; rename str_new. Damien George 2014-05-25 22:34:34 +01:00
  • 2617eebf2f Change const byte* to const char* where sensible. Damien George 2014-05-25 22:27:57 +01:00
  • f88fc7bd23 Merge branch 'pfalcon-keep-strings-uninterned' Damien George 2014-05-25 22:13:47 +01:00
  • 5042bce8fb py: Don't automatically intern strings in parser. Damien George 2014-05-25 22:06:06 +01:00
  • 5fd5af98d0 objlist: Implement support for arbitrary (3-arg) slices. Paul Sokolovsky 2014-05-25 22:12:56 +03:00
  • de4b9329f9 py: Refactor slice helpers, preparing to support arbitrary slicing. Paul Sokolovsky 2014-05-25 21:21:57 +03:00
  • 3aaabd11a0 Merge branch 'keep-strings-uninterned' of github.com:pfalcon/micropython into pfalcon-keep-strings-uninterned Damien George 2014-05-25 13:19:31 +01:00
  • ff4b6daa4f sequence: Throw exception for not implemented slice steps. Paul Sokolovsky 2014-05-25 03:02:57 +03:00
  • 2705f4c782 objlist: Implement growing slice assignment. Paul Sokolovsky 2014-05-25 02:36:12 +03:00
  • 69d081a7cf py: Handle case of slice start > stop in common sequence function. Paul Sokolovsky 2014-05-25 02:29:40 +03:00
  • afaaf535e6 objslice: Support arbitrary objects start, stop, and step. Paul Sokolovsky 2014-05-25 01:39:27 +03:00
  • 7a4ddd2428 Add SystemExit exception and use it in unix/ and stmhal/ ports. Damien George 2014-05-24 23:32:19 +01:00
  • ee3fd46f13 Rename configuration variables controling Python features. Damien George 2014-05-24 23:03:12 +01:00
  • d0ceb04b90 modsocket: 64-bit cleanness. Paul Sokolovsky 2014-05-24 23:00:09 +03:00
  • d098c6bf85 objstr: Implement .endswith(). Paul Sokolovsky 2014-05-24 22:46:51 +03:00
  • 561789d718 unix modsocket: Make .makefile() method more compliant. Paul Sokolovsky 2014-05-24 21:24:37 +03:00
  • 806ea1f6ca py: Initial attempts to actually allow implementing __new__ in Python. Paul Sokolovsky 2014-05-22 00:32:00 +03:00
  • 0c937fa25a objobject: Fix arguments to __init__(). Paul Sokolovsky 2014-05-21 23:10:48 +03:00
  • efaef6eea3 unix: Fix casting issue, int to small int object. Damien George 2014-05-21 20:53:56 +01:00
  • 90886807a1 Merge branch 'master' of github.com:micropython/micropython Damien George 2014-05-21 20:35:02 +01:00
  • 58ebde4664 Tidy up some configuration options. Damien George 2014-05-21 20:32:59 +01:00
  • a8408a8abe objtype: super: Fall back to "object" lookup as last resort. Paul Sokolovsky 2014-05-21 22:24:36 +03:00
  • 6a410789b8 objtype: super: Add stop condition for looking up in base types. Paul Sokolovsky 2014-05-21 00:54:46 +03:00
  • aa7cf6f72f stm: Remove long-obsolete stm/ port. Damien George 2014-05-21 20:14:27 +01:00
  • 63436ce22e unix, Mac support: Generate order.def via Makefile. Damien George 2014-05-21 19:56:54 +01:00
  • 0fd01683c6 Merge pull request #607 from Anton-2/osx-clang Damien George 2014-05-21 19:51:05 +01:00
  • 6ac5dced24 py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. Damien George 2014-05-21 19:42:43 +01:00
  • 6d197740cf stmhal: Stop USB before entering DFU by software. Damien George 2014-05-21 19:25:34 +01:00
  • 008343f640 Merge pull request #621 from stinos/migw-w64-fix Paul Sokolovsky 2014-05-20 16:38:16 +03:00
  • 053765414c modstruct: struct_calcsize: Fix case of uninitialized var. Paul Sokolovsky 2014-05-20 16:34:05 +03:00
  • 32acd4b9f1 windows: Fix compilation with mingw-w64 so it uses correct printf implementations stijn 2014-05-20 12:14:28 +02:00
  • 44a949d58c qemu-arm: Disable "io" module. Paul Sokolovsky 2014-05-19 22:33:35 +03:00
  • 9e29666bf9 py: Implement proper separation between io.FileIO and io.TextIOWrapper. Paul Sokolovsky 2014-05-19 20:59:13 +03:00
  • 52386cafa0 objexcept: Implement explicit __init__ method, useful for subclasses. Paul Sokolovsky 2014-05-18 20:44:04 +03:00
  • 66ab571cca tests: Update subclass-native2.py for __new__/__init__ refactor. Paul Sokolovsky 2014-05-18 20:42:28 +03:00
  • 13684fd60b objtype: Separate __new__ and __init__ methods. Paul Sokolovsky 2014-05-18 20:37:18 +03:00
  • eee31288dd stmhal: Fix DAC documentation: need to convert float to int for buf. Damien George 2014-05-19 19:08:12 +01:00
  • 2de4d59171 stmhal: Fix write_timed function for DAC(2). Damien George 2014-05-19 18:58:53 +01:00
  • f905ebb173 stmhal: Make pyb.bootloader take no arguments. Damien George 2014-05-19 18:26:51 +01:00
  • 404f7cf902 Merge pull request #618 from swegener/jump-to-bootloader Damien George 2014-05-19 18:13:34 +01:00
  • 9bf4f7e3d3 stmhal: Remap system flash and adjust addresses Sven Wegener 2014-05-18 13:15:02 +02:00
  • 7ae8e4b679 stmhal: Activate bootloader with pyb.bootloader() Sven Wegener 2014-05-18 11:56:21 +02:00
  • 5cdff5fa61 Merge pull request #615 from swegener/for-upstream Paul Sokolovsky 2014-05-17 23:30:00 +03:00
  • 7ba0fedf13 py: Fix mp_obj_t -> mp_const_obj_t for mp_obj_int_get_checked() Sven Wegener 2014-05-17 11:17:48 +02:00
  • bf27140193 py: More mp_identity usage. Paul Sokolovsky 2014-05-17 11:18:23 +03:00
  • ab7bf28489 py: More const usage. Paul Sokolovsky 2014-05-17 11:08:33 +03:00
  • c18ef2a9dd objstr: startswith(): Accept optional "start" arg. Paul Sokolovsky 2014-05-15 21:18:34 +03:00
  • 70328e419a py: Implement more complete bytes comparison handling. Paul Sokolovsky 2014-05-15 20:58:40 +03:00
  • ad3baec12f sequence: Fix yet another case of improper sequence comparison. Paul Sokolovsky 2014-05-15 19:09:06 +03:00
  • 767e45c290 modos: Clean 64-bit issues. Paul Sokolovsky 2014-05-15 18:38:54 +03:00
  • a47b64ae2d objstringio: Implement io.BytesIO. Paul Sokolovsky 2014-05-15 07:28:19 +03:00
  • 0c124c3123 unix: Add "_os" module with stat(). Paul Sokolovsky 2014-05-14 22:08:45 +03:00
  • 2a27365854 objstr.c: Partial implementation of .rsplit(). Paul Sokolovsky 2014-05-13 08:07:08 +03:00
  • 51fab28e94 py: Improve mpz_and function. Damien George 2014-05-13 22:58:00 +01:00
  • f6e430f77f Merge pull request #600 from stinos/unix-exitcode Damien George 2014-05-13 22:39:35 +01:00
  • aeeb448eb6 Merge pull request #613 from pfalcon/pauls-copyr Damien George 2014-05-13 22:36:36 +01:00
  • da9f0924ef py, unix: Add copyright for modules I worked closely on. Paul Sokolovsky 2014-05-13 08:44:45 +03:00
  • 7074f25768 tests/int-long.py: Try to expose issue with recent "&" optimization. Paul Sokolovsky 2014-05-13 08:24:54 +03:00
  • 561e425903 py: Fix bug in mpz_and function. Damien George 2014-05-12 23:27:29 +01:00
  • cc97446ca5 unix: Implement -O option to turn off __debug__ flag. Damien George 2014-05-12 23:14:52 +01:00
  • 915197a8f9 py: Remove emit_glue init and deinit. Needed only for debugging. Damien George 2014-05-12 23:11:14 +01:00
  • 97f9a2813e py: Add support for __debug__ constant. Damien George 2014-05-12 23:07:34 +01:00
  • 96f137b24a py: Rename BYTE_CODE to BYTECODE (this was missed in previous rename). Damien George 2014-05-12 22:35:37 +01:00
  • f42dbb98d1 unix: Fix linker errors when time/ffi modules are disabled stijn 2014-05-12 21:46:29 +02:00
  • df94b717b4 modstruct: Implement count specifier for strings (e.g. "100s"). Paul Sokolovsky 2014-05-12 23:45:50 +03:00
  • da1fffaa09 Fix some unused variables, and silence a clang warning about initialization override in vmentrytable.h Antonin ENFRUN 2014-05-12 00:21:50 +02:00
  • ceac71f1f5 unix: Add asm statements needed to read registers with clang. Code generated by gcc 4.9.0 is unchanged (same statements, different order). Antonin ENFRUN 2014-05-12 00:24:41 +02:00
  • 1b901c320b tests: create result file for test/basics/memoryerror.py . Antonin ENFRUN 2014-05-11 21:29:54 +02:00
  • 6caae0bcb1 unix: Create __bss_start and _end symbols for Mach-O targets. Antonin ENFRUN 2014-05-11 21:28:26 +02:00
  • 147c80bf7c modstruct: Use MP_OBJ_FUN_ARGS_MAX instead of -1. Paul Sokolovsky 2014-05-11 22:50:27 +03:00
  • 5ebd5f0f19 objstr: Slice indexing: support bytes properly. Paul Sokolovsky 2014-05-11 21:22:59 +03:00
  • bfb8819c0c objstr: Make .split() support bytes. Paul Sokolovsky 2014-05-11 21:17:28 +03:00
  • 5e5d69b35e objstr: Make .join() support bytes. Paul Sokolovsky 2014-05-11 21:13:01 +03:00
  • 7e7940c39d py: Fix __len__ special method result handling. Paul Sokolovsky 2014-05-11 20:35:02 +03:00
  • c48d6f7add py: Don't expect that type->getiter() always returns iterator, check for NULL. Paul Sokolovsky 2014-05-11 20:32:39 +03:00
  • 0f570cfccf showbc: Decode MAP_ADD. Paul Sokolovsky 2014-05-11 19:25:01 +03:00
  • ff30666c69 py: Add basic implementation of hasattr() function. Paul Sokolovsky 2014-05-11 19:05:42 +03:00
  • a0863158f5 Merge pull request #605 from stinos/travis-mingw Damien George 2014-05-11 18:48:15 +01:00
  • 96b62855b5 Merge pull request #604 from stinos/windows-enablefeat Damien George 2014-05-11 18:41:48 +01:00
  • ee7a880d6e py: Use mp_arg_check_num in more places. Damien George 2014-05-11 18:37:21 +01:00
  • 5f9ebd36cd travis: Add cross-compilation of mingw port stijn 2014-05-11 19:33:13 +02:00
  • 1d34e32431 py: frozenset() creates an empty frozenset. Damien George 2014-05-11 18:28:48 +01:00
  • b9d8091d0e windows: Enable frozen set and sys.exit stijn 2014-05-10 20:44:20 +02:00
  • 9e040b7cd8 unix: Use standard return codes for main stijn 2014-05-10 19:42:06 +02:00
  • 2323ef9182 py: Rename globally-accessible tuple functions, prefix with mp_obj_. Damien George 2014-05-11 18:00:45 +01:00
  • c59af52e84 py: Rename some unichar functions for consistency. Damien George 2014-05-11 17:53:11 +01:00
  • 89755ae67f py: Rename MICROPY_SYS_EXIT to MICROPY_MOD_SYS_EXIT. Damien George 2014-05-11 17:35:43 +01:00
  • f92a0d4d16 stmhal: Enable frozenset. Takes 292 text bytes in ROM. Damien George 2014-05-11 17:27:31 +01:00
  • bd651d1a67 Merge pull request #597 from stinos/mingw-compilation Damien George 2014-05-11 15:06:26 +01:00
  • c3dcb590b8 Merge pull request #603 from stinos/windows-tests-newline Damien George 2014-05-11 15:03:57 +01:00
  • 18ceb7055b Merge branch 'master' of github.com:micropython/micropython Damien George 2014-05-11 12:10:35 +01:00
  • a7a1a38df4 stmhal: Update CC3000 driver to newer version. Damien George 2014-05-11 12:09:13 +01:00
  • eea0118654 py: Give up and make mp_obj_str_get_data() deal with bytes too. Paul Sokolovsky 2014-05-11 13:51:24 +03:00
  • a4dbc73e8a tests: Fix handling of newlines from expected output files stijn 2014-05-11 12:45:02 +02:00
  • b2d4fc06fc objstr: Make *strip() accept bytes. Paul Sokolovsky 2014-05-11 13:17:29 +03:00
  • ce6c10172b tests: Really fix import. Paul Sokolovsky 2014-05-11 03:45:42 +03:00
  • b4acd028b6 tests: Fix import. Paul Sokolovsky 2014-05-11 03:40:32 +03:00
  • ea9708092e objtuple: Go out of the way to support comparison of subclasses. Paul Sokolovsky 2014-05-11 03:16:04 +03:00