901 Commits (3aa8ee7c9e2e9fd50ffb4b588518bd84b40fef84)

Author SHA1 Message Date
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
Paul Sokolovsky 57207b8818 objint_mpz: Quick&dirty implementation of bitwise operations. 11 years ago
Damien George c91097223d py: Remove some unnecessary exception objects. 11 years ago
Paul Sokolovsky 8dc768b96f objgenerator: Add comments for latest mp_obj_gen_instance_t refactors. 11 years ago
Damien George 3ec0a1a32d py: Add 'object' object. 11 years ago
Damien George eabdf6718a py: Add function to convert long int to float. 11 years ago
Damien George 6280587320 py: Fix types in new math functions. 11 years ago
Damien George ffa37db5c5 py: Fix int -> machine_uint_t. 11 years ago
Rachel Dowdall 2d15deebdc Fixed floor division on mp ints and small ints. Added a floordivide test case. 11 years ago
Rachel Dowdall 56402796d8 Fixed floor division on mp ints and small ints. Added a floordivide test case. 11 years ago
Rachel Dowdall cde8631f15 Fixed modulo operator on ints and mp ints to agree with python. Added intdivmod.c and tests/basics/modulo.py. 11 years ago