aboutsummaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2014-01-12Move BITS_PER_BYTE, BITS_PER_WORD to mpconfig.h for reuse.Paul Sokolovsky
2014-01-12py: Improve memory management for parser; add lexer error for bad line cont.Damien George
2014-01-12Merge pull request #148 from pfalcon/list-cmpDamien George
Implement type virtual equality method support and implement comparisons for lists
2014-01-12py: AssertionError is loaded from global, to match CPython.Damien George
2014-01-12Merge pull request #146 from pfalcon/assert-excDamien George
Add AssertionError.
2014-01-12list: Implement comparison operators.Paul Sokolovsky
2014-01-12mp_obj_equal(): For non-trivial types, call out to type's special method.Paul Sokolovsky
2014-01-12rt_binary_op(): Don't fall thru in case small_int op result doesn't fit back.Paul Sokolovsky
Currently it would report "operation not supported" which is confusing. Overall, this is thinko leading to undefined behavior.
2014-01-12list: Add extend() methods and += operator.Paul Sokolovsky
2014-01-12Add AssertionError.Paul Sokolovsky
2014-01-11py: Implement staticmethod and classmethod (internally).Damien George
Still need to make built-ins by these names, and write tests.
2014-01-11py: Fix bug where == and != not handled for small_ints.Damien George
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-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-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 #123 from xbe/masterDamien George
Implement str.strip
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-08Implement str.stripxbe
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-08py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t.Damien George
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).
2014-01-08Move lexerstr to main py directory (everyone uses it).Damien George
2014-01-08py: Improve __build_class__.Damien George
2014-01-07Merge pull request #108 from chipaca/dict_featsDamien George
Dictionary features that don't involve views or classmethods. First part of issue #99.
2014-01-07py: Small big fix to type declarations.Damien George
2014-01-07Moved dict methods out to a mp_method_t.John R. Lenton
2014-01-07Merge remote-tracking branch 'upstream/master' into dict_featsJohn R. Lenton
2014-01-07added a first pass of dict.updateJohn R. Lenton
2014-01-07py: Fix up number operations and coercion.Damien George