Commit Graph

  • 443857de98 objtype: Add support for looking up non-method attrs in native base class. Paul Sokolovsky 2014-04-29 03:16:38 +03:00
  • 4f46c441ef tests: Add basic tests for subclassing native types and using special methods. Paul Sokolovsky 2014-04-29 02:44:13 +03:00
  • 6ead0d2fbc objtype: Implement basic framework for subclassing native types. Paul Sokolovsky 2014-04-29 02:42:28 +03:00
  • 186e463a9e py: Fix bug in map lookup of interned string vs non-interned. Damien George 2014-04-28 12:11:57 +01:00
  • 185f9c1c46 py: Fix lexerunix, where not all data may be read from a file. Damien George 2014-04-28 11:43:28 +01:00
  • 0c8fcb9c49 py: Remove silly comment about interning keywords. Damien George 2014-04-28 09:56:31 +01:00
  • a224067846 py: Clear allocated, but unused memory in containers. Paul Sokolovsky 2014-04-28 00:16:57 +03:00
  • 7ce6a8fe46 objlist: We no longer need to assert on mem alloc results. Paul Sokolovsky 2014-04-27 23:43:01 +03:00
  • 48bf6b3bd0 objlist: Use static small int constructor. Paul Sokolovsky 2014-04-27 23:07:37 +03:00
  • 708c073250 py: Add '*' qstr for 'import *'; use blank qstr for comprehension arg. Damien George 2014-04-27 19:23:46 +01:00
  • 968bf34c4c py: Remove unnecessary LOAD_CONST_ID bytecode. Damien George 2014-04-27 19:12:05 +01:00
  • db12891918 py: Eliminate 'op' variable in VM dispatch loop. Damien George 2014-04-27 18:19:06 +01:00
  • 9d181f62dc py: Save some ROM by shortening compiler error messages. Damien George 2014-04-27 16:55:27 +01:00
  • 2c0842b3c5 py: Change the way function arguments are compiled. Damien George 2014-04-27 16:46:51 +01:00
  • 2827d62e8b py: Implement keyword-only args. Damien George 2014-04-27 15:50:52 +01:00
  • 36cbd0db7e Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-26 22:24:45 +01:00
  • 32bef315be py, gc: Only zero out the extra bytes at the end of the heap chunk. Damien George 2014-04-26 22:23:42 +01:00
  • 27f5bdd6d4 py: "read" & "write" are so common that make them core. Paul Sokolovsky 2014-04-26 21:15:56 +03:00
  • 100cd36a0e objstringio: Compile only if MICROPY_ENABLE_MOD_IO defined. Paul Sokolovsky 2014-04-26 20:59:39 +03:00
  • cb9dc086a3 modio: Implement io.StringIO class. Paul Sokolovsky 2014-04-26 20:26:14 +03:00
  • dbc81df5d4 Simplify names for argcheck.c / arg parsing. Damien George 2014-04-26 11:19:17 +01:00
  • 6d3c5e4301 Add ARRAY_SIZE macro, and use it where possible. Damien George 2014-04-26 10:47:29 +01:00
  • d139c489ba Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-26 10:31:58 +01:00
  • 6cebe24b7d bare-arm: Disable more stuff to reduce binary size. Damien George 2014-04-26 10:31:38 +01:00
  • 107c9fb235 py: Make collections module configurable, enabled by default. Damien George 2014-04-26 10:31:15 +01:00
  • e14d096cb7 objstr: Optimize .rstrip() by scanning string from end. Paul Sokolovsky 2014-04-26 06:48:31 +03:00
  • 881078403e objstr: Implement .lstrip() & .rstrip(). Paul Sokolovsky 2014-04-26 06:20:08 +03:00
  • 12a9cfed76 modsocket: Make .send() support arbitrary objects with buffer interface. Paul Sokolovsky 2014-04-26 05:53:02 +03:00
  • 45fb143ba6 streams: Make .write() support arbitrary objects with buffer interface. Paul Sokolovsky 2014-04-26 05:46:06 +03:00
  • 1463c1fa82 py: Add MICROPY_ENABLE_DOC_STRING, disabled by default. Damien George 2014-04-25 23:52:57 +01:00
  • c492cf1f44 Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-25 23:45:52 +01:00
  • daab651c5c py, gc: Zero out newly allocated blocks in the GC. Damien George 2014-04-25 23:37:55 +01:00
  • 755565d2cb py: Support instance __call__ method. Paul Sokolovsky 2014-04-25 21:15:16 +03:00
  • 410f30772f py, gc: Fix old gc_realloc for case when NULL is passed in as ptr. Damien George 2014-04-25 11:44:53 +00:00
  • 5be40afb4c Merge pull request #515 from errordeveloper/qemu Damien George 2014-04-24 22:24:00 +01:00
  • c0dc7c3dfa py, vm: Fix recent bug where state is freed too early. Damien George 2014-04-24 15:42:05 +01:00
  • d5e8482c4a py, vm: Free heap-allocated state if it was allocated on the heap. Damien George 2014-04-24 13:52:06 +01:00
  • 978939156d Merge pull request #519 from pfalcon/exc-no-ptr-to-field Damien George 2014-04-24 11:14:18 +01:00
  • 1cbb99d1db Merge pull request #518 from pfalcon/vm-trace Damien George 2014-04-24 11:06:10 +01:00
  • 1c1d902cd3 Makefile: Allow to override "super optimization" options used for some files. Paul Sokolovsky 2014-04-24 02:59:43 +03:00
  • 6c94abe347 windows/README: Use CROSS_COMPILE instead of CC to cover other tools too. Paul Sokolovsky 2014-04-23 20:45:53 +03:00
  • 1acf22f17b objexcept: Don't store args tuple within exception object. Paul Sokolovsky 2014-04-23 02:19:18 +03:00
  • c5e32c6995 vm: Add rudimentary bytecode execution tracing capability. Paul Sokolovsky 2014-04-23 03:40:24 +03:00
  • 4c6b375960 showbc: MAKE_CLOSURE*: Update for new closed-over encoding. Paul Sokolovsky 2014-04-23 03:22:10 +03:00
  • 5e3e2d00ea emitglue: Typo fix in var name. Paul Sokolovsky 2014-04-23 02:31:54 +03:00
  • 20e9ed3916 builtinimport: If there was error compiling imported module, raise exception. Paul Sokolovsky 2014-04-22 02:53:20 +03:00
  • fa6f0506c1 unix: Workaround MP_OBJ_NEW_SMALL_INT() 64-bit issues. Paul Sokolovsky 2014-04-22 00:16:46 +03:00
  • 5d3a830171 modsocket: Clean up OSError-like exception a bit. Paul Sokolovsky 2014-04-21 23:58:39 +03:00
  • acb13886fc unix: OSError's args[0] should be errno numeric value. Paul Sokolovsky 2014-04-21 23:56:37 +03:00
  • dec31bb872 objexcept: Add mp_obj_new_exception_arg1() convenience function. Paul Sokolovsky 2014-04-22 00:01:13 +03:00
  • b418b6fb0d modffi: Don't use OSError for clearly unrelated errors. Paul Sokolovsky 2014-04-21 23:51:58 +03:00
  • 88972b0d94 modffi: Describe typecodes where they differ from used by struct module. Paul Sokolovsky 2014-04-21 23:17:12 +03:00
  • 6820937892 travis: should test building qemu-arm as well. Ilya Dmitrichenko 2014-04-21 21:10:15 +01:00
  • b554bc5691 qemu-arm: update makefile (d553be5). Ilya Dmitrichenko 2014-04-21 21:08:15 +01:00
  • 2face99cfe qemu-arm: more generic port name. Ilya Dmitrichenko 2014-04-21 21:02:31 +01:00
  • ee857853d6 cortex-m3-qemu: refactor the port. Ilya Dmitrichenko 2014-04-21 21:00:23 +01:00
  • 5130b81eec cortex-m3-qemu: a working port Ilya Dmitrichenko 2014-04-16 17:27:23 +01:00
  • ca045d97b9 tools: Update pyboard.py to work with latest changes to RTC. Damien George 2014-04-21 20:18:37 +01:00
  • 5ea69859c9 stmhal: Update help text. Damien George 2014-04-21 20:18:22 +01:00
  • 350cb6bf20 stmhal: Fix bug with pin GPIO reading. Damien George 2014-04-21 20:18:06 +01:00
  • ef255e47c1 stmhal, usrsw: Wrap usrsw.c in #if, for when switch is not available. Damien George 2014-04-21 18:31:40 +01:00
  • b97c2f4c14 stmhal, accel: Add TODO comment. Damien George 2014-04-21 18:30:38 +01:00
  • 46e1f26615 stmhal, usrsw: Update comments for new switch API. Damien George 2014-04-21 18:28:23 +01:00
  • 6125ba4a7f stmhal: Make switch a class, to follow suit of all other modules. Damien George 2014-04-21 18:23:50 +01:00
  • af797f476f stmhal, servo: Rename calibrate method to calibration. Damien George 2014-04-21 18:21:07 +01:00
  • 6691c9e655 stmhal, timer: Remove obsolete global variable. Damien George 2014-04-21 18:19:50 +01:00
  • 7fdfa93700 stmhal: Add Timer class: simple TIM control, incl callback on IRQ. Damien George 2014-04-21 16:48:16 +01:00
  • e5f8a77db6 py: Add 'align' and 'data' meta-instructions to inline assembler. Damien George 2014-04-21 13:33:15 +01:00
  • 764af4b7c5 stmhal: Make DAC dynamically allocate instances; rename dma->write_timed. Damien George 2014-04-21 13:06:19 +01:00
  • 83407ad082 stmhal: Clean up rtc.c a bit. Damien George 2014-04-21 12:45:59 +01:00
  • 7533700393 stmhal: Rename USART to UART. Damien George 2014-04-21 12:03:09 +01:00
  • 806f4aef9a py: Fix super() bug, where it didn't allow instance access. Damien George 2014-04-21 02:11:07 +01:00
  • b33d72aa89 Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-21 02:00:03 +01:00
  • 34f01c2ca1 stmhal: Add some documentation to I2C, SPI and USART modules. Damien George 2014-04-21 01:59:43 +01:00
  • c7d2b10b85 Merge pull request #513 from errordeveloper/misc_fix/modffi_pkg_config Damien George 2014-04-21 01:22:27 +01:00
  • 0ae21a81f7 Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-21 01:18:05 +01:00
  • 3771a097da stmhal: Improve USART class, to be more like SPI and I2C. Damien George 2014-04-21 01:14:14 +01:00
  • eb8bdf4df3 stmhal, SPI and I2C: Improvements to functionality and consistency. Damien George 2014-04-21 00:10:04 +01:00
  • 64ba6ca127 py: Small change to mp_arg_parse_all. Damien George 2014-04-21 00:09:44 +01:00
  • 521de04ce2 windows: Add README with basic cross-compile instructions. Paul Sokolovsky 2014-04-20 22:35:11 +03:00
  • 7f7c7aa76a windows: Unbreak mingw32 build (cross-compiling under Linux). Paul Sokolovsky 2014-04-20 22:20:48 +03:00
  • a196d08dfc unix windows: mingw32 doesn't have realpath(), use _fullpath() instead. Paul Sokolovsky 2014-04-20 22:19:14 +03:00
  • 1f2ca1c1f9 unix file: mingw32 has STDIN_FILENO and friends in stdio.h . Paul Sokolovsky 2014-04-20 22:16:29 +03:00
  • 353b0289f3 py: Add win32-specific header for alloca(). Paul Sokolovsky 2014-04-20 22:15:35 +03:00
  • 41809a1ced nlrx86.S: Another ifdef for win32 symbol underscoring issues. Paul Sokolovsky 2014-04-20 22:14:58 +03:00
  • b76fd842f0 unix mem_info(): Dump GC info only if it's enabled. Paul Sokolovsky 2014-04-20 22:10:27 +03:00
  • 643284fc8e Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-20 19:08:46 +01:00
  • ff91156d34 stmhal: Improved configurability for I2C and SPI busses. Damien George 2014-04-20 19:06:15 +01:00
  • 26905259d0 objarray: Slice subscription operation: properly test for op subtype. Paul Sokolovsky 2014-04-20 20:58:33 +03:00
  • 5b991ae2d3 gc: gc_realloc(): Fix byte-to-block calculation. Paul Sokolovsky 2014-04-20 20:46:39 +03:00
  • 2b925d7696 Merge branch 'fix-netduino-i2c-spi' of github.com:dhylands/micropython into dhylands-fix-netduino-i2c-spi Damien George 2014-04-20 18:32:17 +01:00
  • dde739d364 py, gc: Further simplify coding-style of gc_realloc. Damien George 2014-04-20 18:16:25 +01:00
  • 5f6a25fc50 py: Wrap #if's around emitter functions that are used only by emitcpy. Damien George 2014-04-20 18:02:27 +01:00
  • 3558f62fb5 py: Making closures now passes pointer to stack, not a tuple for vars. Damien George 2014-04-20 17:50:40 +01:00
  • bc5f0c1977 objclosure: Store reference to entire closed variables tuple. Paul Sokolovsky 2014-04-20 13:03:39 +03:00
  • 2758b7d3e2 objcell: Add disabled by default print method for debugging. Paul Sokolovsky 2014-04-20 13:02:00 +03:00
  • c86889dafb gc: "new" gc_realloc: Rewrite in plain C, fixing bunch of bugs. Paul Sokolovsky 2014-04-20 11:45:16 +03:00
  • ed162b5ef2 gc: Recover simple gc_realloc implementation, make easier to switch between. Paul Sokolovsky 2014-04-20 11:43:38 +03:00
  • 9fd02e186d modsocket: Add setblocking() method. Paul Sokolovsky 2014-04-20 02:00:12 +03:00
  • 0f836ef893 modstruct: Add 'O' typecode for passing mp_obj_t. Paul Sokolovsky 2014-04-20 05:19:10 +03:00