383 Commits (5b2f62aff312949c9c7edec6cfaaf4f97d93c442)

Author SHA1 Message Date
Damien George 9d68e9ccdd py: Implement integer overflow checking for * and << ops. 11 years ago
Damien George 0ec6bd47cb py: Fix printing of type name. 11 years ago
Damien George 0c36da0b59 Implement ROMable modules. Add math module. 11 years ago
Damien George 715101580b py: Factor and improve issubclass. 11 years ago
Paul Sokolovsky d08fd68664 Add basic collections.namedtuple implementation. 11 years ago
Damien George 41eb6086b7 py: Remove more var arg names fro macros with var args. 11 years ago
Damien George 510477557d py: Take out bitfield entries from their own structure. 11 years ago
Damien George 2077397118 py: Put number parsing code together in parsenum.c. 11 years ago
Paul Sokolovsky ac2e28c654 Support passing positional args as keywords to bytecode functions. 11 years ago
Paul Sokolovsky 44739e280e Make DEBUG_printf() a proper function, implementation is port-dependent. 11 years ago
Damien George 2e482cdb7b py: Implement *vargs support. 11 years ago
Damien George 22a0865d54 py: Improve exception bases, reduces ROM usage. 11 years ago
Damien George 8725f8f7de py: Pass all scope flags through to runtime. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Paul Sokolovsky 910843e86d Allow ports to define statically builtin functions. 11 years ago
Paul Sokolovsky da1ce93da8 Implement "from module import *" construct. 11 years ago
Paul Sokolovsky 520e2f58a5 Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 11 years ago
Paul Sokolovsky 76f06de96d Add NotImplementedError. 11 years ago
Damien George 7d0bfbedd2 py: Add some qstrs to the global table. 11 years ago
Damien George aea532ece1 py: Put builtins into ROM table. 11 years ago
Damien George 64131f3215 Add staticmethod and classmethod to builtin namespace. 11 years ago
Damien George 35e2a4e6bb py: Add built-in super. 11 years ago
Paul Sokolovsky e11b17c25f Implement support for sys.path when loading modules. 11 years ago
Paul Sokolovsky 0c59db1973 Use qstr id to create sys module. 11 years ago
Paul Sokolovsky 7cd54d79db Add ImportError. 11 years ago
Paul Sokolovsky 1d938c9503 Expose __import__() function. 11 years ago
Damien George ca4767984b py: Implement builtin exec. 11 years ago
Damien George 4acb2452b3 py: Add very basic implementation of dir() builtin. 11 years ago
Damien George cd82e02e84 py: Partially fix native emitter to work with latest runtime. 11 years ago
xbe 0ebf8534ab Implement and add tests for the id() builtin function. 11 years ago
Paul Sokolovsky edbdf71f5c rt_unpack_sequence(): Support generic iterables. 11 years ago
Damien George 48697f1dd2 Tidy up some comments. 11 years ago
Damien George 9aa2a527b5 py: Tidy up BINARY_OPs; negation done by special NOT bytecode. 11 years ago
Paul Sokolovsky 90750029df Implement default function arguments (for Python functions). 11 years ago
Damien George 8b56beb1a1 py: Simplified rt_call_function_n_kw. 11 years ago
Markus Siemens 2c2a124e16 Fix SIGSEV when running "a"() 11 years ago
Damien George 3f759b71c6 py: Add MICROPY_ENABLE_FLOAT around a float specific piece of code. 11 years ago
Damien George 09a0c64bce py: Improve __bool__ and __len__ dispatch; add slots for them. 11 years ago
Paul Sokolovsky c1d9bbc345 Implement __bool__ and __len__ via unary_op virtual method for all types. 11 years ago
Damien George d0691ccaec py: Simplify fastn in VM; reduce size of unique code struct. 11 years ago
Damien George 08d075592f py: Fix bug with LOAD_METHOD; fix int->machine_int_t for small int. 11 years ago
Damien George e4b6a079b3 py: Implement 'not' in compiler, and improve rt_is_true. 11 years ago
Paul Sokolovsky 0dd0467a97 Don't pre-import array module. 11 years ago
Damien George 4e8dc8c41b py: Add unary op not for NoneType, bool, tuple, list, dict; fix for int. 11 years ago
Damien George 7c9c667633 py: Implement iterator support for object that has __getitem__. 11 years ago
Paul Sokolovsky c1d200ef74 rt_deinit(): Finalize some maps. 11 years ago
Paul Sokolovsky 91fb1c9b13 Add basic implementation of bytes type, piggybacking on str. 11 years ago
Damien George 1e708fed18 py: Implement bool unary op; tidy up unary op dispatch. 11 years ago
Damien George 0d028743aa py: Initialise loaded_module map in rt_init. 11 years ago
Damien George 5fa93b6755 Second stage of qstr revamp: uPy str object can be qstr or not. 11 years ago