54 Commits (cd94b384a39a2d7f3efa557ce0bda305d0aa3cc7)

Author SHA1 Message Date
Damien George d99944acdd py: Clear state to MP_OBJ_NULL before executing byte code. 11 years ago
Damien George 13d6739cc7 py: Generators can have their locals closed over. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Paul Sokolovsky 817e76a1a5 objgenerator.throw(GeneratorExit) is not equivalent to .close(). 11 years ago
Paul Sokolovsky 1eac05d541 objgenerator: Another obscure case of propagating MP_OBJ_NULL optimization. 11 years ago
Damien George 0997af932f py: Don't wrap necessary function calls in assert. 11 years ago
Paul Sokolovsky f39d3b93da py: Implement support for generalized generator protocol. 11 years ago
Paul Sokolovsky 7fafb28f6d objgenerator: Handle default args to generator functions. 11 years ago
Damien George df6567e634 Merge map.h into obj.h. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Paul Sokolovsky ee5ecc9de2 objgenerator.throw: Instantiate if exception type passed, just as "raise". 11 years ago
Paul Sokolovsky 9a54a22318 objgenerator.throw(): Throwing GeneratorExit is equivalent to .close(). 11 years ago
Paul Sokolovsky 6ae237d2bd objgenerator: Store proper code_info pointer. 11 years ago
Paul Sokolovsky aaff716189 objgenerator: mp_obj_gen_resume() suitable only for generators. 11 years ago
Damien George 89f94b51ab py: Rename mp_exc_stack to mp_exc_stack_t. 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
Paul Sokolovsky c4d589e2bb objgenerator: close(): Throw instance of GeneratorExit (not type). 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 9b196cddab Remove mp_obj_type_t.methods entry and use .locals_dict instead. 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
Paul Sokolovsky 962b1cd1b1 objgenerator: Implement return with value and .close() method. 11 years ago
Paul Sokolovsky 8dc768b96f objgenerator: Add comments for latest mp_obj_gen_instance_t refactors. 11 years ago
Paul Sokolovsky 48caa09a9d objgenerator: Implement .throw() method to throw exceptions into generator. 11 years ago
Paul Sokolovsky 61fd20f168 objgenerator: Implement throwing exceptions out of generator. 11 years ago
Paul Sokolovsky c0abc28aa1 objgenerator: Keep exception stack within generator object, like value stack. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George c8f78bc280 py: VM never throws an exception, instead returns a status and value. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Damien George a71c83a1d1 Change mp_obj_type_t.name from const char * to qstr. 11 years ago
Damien George 099a9cb575 Remove mp_obj_new_exception_msg_1_arg and _2_arg. 11 years ago
Paul Sokolovsky d5df6cd44a Replace global "static" -> "STATIC", to allow "analysis builds". Part 1. 11 years ago
Damien George d0691ccaec py: Simplify fastn in VM; reduce size of unique code struct. 11 years ago
Paul Sokolovsky 14d28be344 gen.send(): Throw StopIteration. Also, explicitly shutdown finished gen. 11 years ago
Paul Sokolovsky bf38e2a03a Implement send() method for generators. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Damien George 08335004cf Add source file name and line number to error messages. 11 years ago
Damien George 20006dbba9 Make VM stack grow upwards, and so no reversed args arrays. 11 years ago
Paul Sokolovsky 76d982ef34 type->print(): Distinguish str() and repr() variety by passing extra param. 11 years ago
John R. Lenton 9c83ec0eda Merge remote-tracking branch 'upstream/master' into dict_feats 11 years ago
John R. Lenton c06763a020 This implements a better (more python-conformant) list.sort. 11 years ago
ian-v 5fd8fd2c16 Revert MP_BOOL, etc. and use <stdbool.h> instead 11 years ago
ian-v 7a16fadbf8 Co-exist with C++ (issue #85) 11 years ago
Paul Sokolovsky 860ffb0a43 Convert many object types structs to use C99 tagged initializer syntax. 11 years ago
Damien George 71c5181a8d Convert Python types to proper Python type hierarchy. 11 years ago
Damien George eb7bfcb286 Split qstr into pools, and put initial pool in ROM. 11 years ago