912 Commits (2bf7c092225645d8c5b15e536afdce39e3593e42)

Author SHA1 Message Date
Damien George b04be056fe py: Fix regress with GeneratorExit object becoming truly const. 11 years ago
Damien George 3e1a5c10c5 py: Rename old const type objects to mp_type_* for consistency. 11 years ago
Damien George 07ddab529c py: Change mp_const_* objects to macros. 11 years ago
Damien George 6e54fcfd12 py: Fix typo printing complex numbers that are purely imaginary. 11 years ago
Damien George d1e443d0bc py: Free unique_code slot for outer module. 11 years ago
Paul Sokolovsky 44307d5ef8 vm: Implement "with" statement (SETUP_WITH and WITH_CLEANUP bytecodes). 11 years ago
Paul Sokolovsky 682f9e639d vm: Make sure that exception triple is <type, instance, traceback>. 11 years ago
Paul Sokolovsky 4fff26a35c vm: Factor out exception block setup to a macro. 11 years ago
Damien George 440f041525 py: Fix bugs with debugging output. 11 years ago
Paul Sokolovsky 55234f4617 py: yield from: Elaborate GeneratorExit (gen.close()) handling. 11 years ago
Paul Sokolovsky cf21a4e7f4 py: Core "yield from" implementation. 11 years ago
Paul Sokolovsky c4d589e2bb objgenerator: close(): Throw instance of GeneratorExit (not type). 11 years ago
Paul Sokolovsky 182c31a208 showbc: Add few bytecodes related to "with". 11 years ago
Damien George c63f984647 py: Thin out predefined exceptions. 11 years ago
Damien George 01b877d16d py: Fix typo printing complex numbers. 11 years ago
Damien George ce8f07adcd py: Rename emit_pre so they have globally unique names. 11 years ago
Damien George 2326d52d20 py: Factor out code from runtime.c to emitglue.c. 11 years ago
Damien George 8767d0710e py: complex_print uses format_float if single precision fp used. 11 years ago
Damien George bee17b00e3 py: Put n_state for bytecode in the bytecode prelude. 11 years ago
Damien George 8dcc0c7924 py: Calculate maximum exception stack size in compiler. 11 years ago
Damien George 945a01c4e3 py: Fix bug in type_store_attr, trying to store to ROM. 11 years ago
Damien George bdcbf0fcd1 py: Restore CPython compatibility in compiler for closures with def args. 11 years ago
Damien George c3f1126ee8 py: Fix logic bugs in object attribute/method extraction. 11 years ago
Damien George 6022d9d478 py: Improved builtin dir. 11 years ago
Paul Sokolovsky e9137b94f2 py: Implement getattr() builtin. 11 years ago
Damien George 9b196cddab Remove mp_obj_type_t.methods entry and use .locals_dict instead. 11 years ago
Paul Sokolovsky 2447a5b582 py: Support closures with default args. 11 years ago
Damien George c12b2213c1 Change mp_method_t.name from const char * to qstr. 11 years ago
Damien George 69b3ba0df3 py: Swap around the double return value of mp_obj_gen_resume. 11 years ago
Damien George 66eaf84b8c py: Replace mp_const_stop_iteration object with MP_OBJ_NULL. 11 years ago
Damien George 548e76cfd6 py: Use _is_subclass_fast instead of _exception_match. 11 years ago
Damien George 9e6e935df0 py: Add support for user-defined iterators via __iter__, __next__. 11 years ago
Paul Sokolovsky af1ae30399 objexcept: Add mp_obj_exception_get_value() convenience function. 11 years ago
Paul Sokolovsky c403076ef8 vm: Implement raise statement w/o args (reraising last exception). 11 years ago
Paul Sokolovsky 962b1cd1b1 objgenerator: Implement return with value and .close() method. 11 years ago
Damien George 6e628c49ca py: Replace naive and teribble hash function with djb2. 11 years ago
Damien George ffb5cfc8d8 py: Removed some unnecessary exception objects. 11 years ago
Damien George caac542b23 Proper support for registering builtin modules in ROM. 11 years ago
Paul Sokolovsky 9512e9e817 objexcept: Add "args" exception attribute, as well as StopIteration.value. 11 years ago
Paul Sokolovsky 7f8b31345b rt_load_method(): Add missing qstr_str() when getting type name. 11 years ago
mux 89d45248ee Add mp_obj_module_register 11 years ago
Damien George 24ff063e80 py: Remove obsolete declarations; make mp_obj_get_array consistent. 11 years ago
xbe 17a5a83fb4 Implement str.rfind() and add tests for it. 11 years ago
xbe 8562de6c48 py/objstr.c: Remove done TODOs. 11 years ago
Paul Sokolovsky f909034400 py: Implement support for "except Exception as var" clause. 11 years ago
Paul Sokolovsky 4b2b7ceca7 runtime: RT_BINARY_OP_EXCEPTION_MATCH: don't fall thru in case of wrong types. 11 years ago
Paul Sokolovsky 1673420053 vm: Abstract working with tagged pointers in VM using macro accessors. 11 years ago
xbe 1ea8fcfae4 py/builtinmath.c: use tgamma() instead of gamma(). 11 years ago
xbe 606821007a Fix OS X detection. 11 years ago
Damien George badc9d4a95 py: Improve dir(): extract names from type->methods table. 11 years ago