aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-01-11Merge remote-tracking branch 'upstream/master' into containmentJohn R. Lenton
Conflicts: py/runtime.c
2014-01-11Implemented support for `in` and `not in` operators.John R. Lenton
2014-01-11py: Fix bug where == and != not handled for small_ints.Damien George
2014-01-11stm: Disable usart calls from C.Damien George
Fixes Issue #132.
2014-01-11py: Fix emitcpy and emitnative's binary_op.Damien George
2014-01-11Merge branch 'master' of github.com:dpgeorge/micropythonDamien George
2014-01-11Merge pull request #138 from chipaca/unify_bopsDamien George
Merge RT_COMPARE_OPs with RT_BINARY_OPs.
2014-01-11py: Make arg to MP_BC_RAISE_VARARGS a byte.Damien George
2014-01-11unified the bopsJohn R. Lenton
2014-01-10Merge pull request #136 from pfalcon/for-range-downtoDamien George
compile_for_stmt_optimised_range(): Properly handle negative & unknown s...
2014-01-10Merge pull request #135 from pfalcon/simple-raiseDamien George
Crude attempt to implement RAISE_VARARGS (with args=1 so far only).
2014-01-10Merge pull request #134 from pfalcon/list-mulDamien George
list: Implement list multiplication.
2014-01-10Merge pull request #131 from chipaca/dict_fromkeysDamien George
Added dict.fromkeys.
2014-01-11compile_for_stmt_optimised_range(): Properly handle negative & unknown steps.Paul Sokolovsky
If step is not constant, in first approximation, we can't apply optimization, (well, we could, but need a special case for this).
2014-01-11Crude attempt to implement RAISE_VARARGS (with args=1 so far only).Paul Sokolovsky
2014-01-11list: Implement list multiplication.Paul Sokolovsky
2014-01-11Unsupported operand types for binary operator: dump both args' types.Paul Sokolovsky
2014-01-11mp_obj_equal(): Print which types' equality not implemented before assert().Paul Sokolovsky
2014-01-11mp_repl_is_compound_stmt(): Thinko fix s/true/try/.Paul Sokolovsky
2014-01-11Dump few more bytecodes (based on attempt to run real-world code).Paul Sokolovsky
2014-01-10Added dict.fromkeys. Are we done with dict and #99 yet? I do think we are.John R. Lenton
2014-01-10Merge pull request #130 from iabdalkader/masterDamien George
Fix usart_obj_tx_str
2014-01-10Fix usart_obj_tx_strmux
* Fix usart_obj_tx_str to send the actual string. * Fix issue #126
2014-01-10Merge pull request #128 from chipaca/dict_viewsDamien George
dict views now, refactoring later.
2014-01-10dict views now, refactoring later.John R. Lenton
2014-01-09Use memcpy instead of strncpy; add usart.status to stm.Damien George
2014-01-09Merge pull request #127 from iabdalkader/masterDamien George
Add USART Micro Python Bindings
2014-01-09Merge pull request #123 from xbe/masterDamien George
Implement str.strip
2014-01-09Merge pull request #121 from pfalcon/count-testcasesDamien George
Count individual testcases when running tests.
2014-01-09py: Implement base class lookup, issubclass, isinstance.Damien George
2014-01-09Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.Damien George
Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
2014-01-09Fix Makefile typomux
2014-01-09Add DEBUG flag to Makefilemux
* Add a DEBUG flag to Makefile, enables: "-O0 -ggdb"
2014-01-09Add USART Micro Python Bindingsmux
* Add Micro Python bindings to usart.c * Export USART python object to namespace pyb
2014-01-08Implement str.stripxbe
2014-01-08Count individual testcases when running tests.Paul Sokolovsky
The idea is simple: each print represents a testcase within a test unit. As we don't have strict rules on which/how many testcase are put into a test file, it's nice to have an idea how many *testcases* we have totally. Would be nice to count how many testcases pass/fail, but that's a bit less trivial.
2014-01-08Add string comparison tests.Paul Sokolovsky
Use computed string to exercise string interning code better.
2014-01-08Merge pull request #120 from dhylands/make-build-quieterDamien George
Make build output quieter.
2014-01-08py: Proper framework for built-in 'type'.Damien George
2014-01-08Make build output quieter.Dave Hylands
Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. This should fix issue #117
2014-01-08py: add variable argument exception constructor function.Damien George
Addresses issue #104.
2014-01-08Merge pull request #114 from pfalcon/streams-bootstrapDamien George
Define buffer and stream protocols, and other starting bits of io.* framework, with io.FileIO-like implementation for Unix
2014-01-08Merge pull request #119 from dhylands/teensy-use-py.mkDamien George
Update teemsy/Makefile to use py.mk
2014-01-08Merge pull request #118 from dhylands/stm-use-OBJCOPY-SIZE-macrosDamien George
Update stm/Makeile to use OBJCOPY and SIZE macros
2014-01-08py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t.Damien George
2014-01-08Update teemsy/Makefile to use py.mkDave Hylands
I also fixed main.c to compile with the new str lexer
2014-01-08Update stm/Makeile to use OBJCOPY and SIZE macrosDave Hylands
While updating the teensy Makfile, I noticed that the stm Makefile was using calling arm-none-eabi-objcopy and size rather than $(OBJCOPY) and $(SIZE), so I added these 2 for consistency.
2014-01-08unix: Add basic implementation of io.FileIO object.Paul Sokolovsky
Note: only read/write/close methods are defined so far, and class is not exposed (use open() factory function, as usual).
2014-01-08Add generic implementations of Python read()/write methods for streams.Paul Sokolovsky
These can be used for any object which implements stream protocol (mp_stream_p_t).
2014-01-08Add support for stream and buffer protocols.Paul Sokolovsky
Stream protocol is abstraction of serial I/O. Buffer protocol is abstraction of random-access I/O. These protocols are defined down to C level, to allow generic, while still efficient algorithms to be coded in C (like, buffered transfer between 2 stream objects, saving/loading of buffer object to/from stream, etc). (Note that CPython define buffer protocol on C level, but apparently not stream protocol).