54 Commits (fb06bfc11ccc2506d27e3f53750771d5c737df2e)

Author SHA1 Message Date
Paul Sokolovsky 75ffcaeace py: Implement __delitem__ method for classes. 11 years ago
Damien George 777b0f32f4 py: Add property object, with basic functionality. 11 years ago
Damien George f4c9b33abf py: Remove DELETE_SUBSCR opcode, combine with STORE_SUBSCR. 11 years ago
Damien George 1d24ea5207 py: Finish implementation of all del opcodes. 11 years ago
Damien George 17520224fa py: Make all objects and instances derive from object. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Paul Sokolovsky 438d504e27 objtype: Add equality test for type types. 11 years ago
Damien George 93b7faa29a py: Factor out static/class method unwrapping code; add tests. 11 years ago
Damien George e44d26ae0c py: Implement __getattr__. 11 years ago
Paul Sokolovsky b509f73982 objtype: Wrap .__name__ handling in MICROPY_CPYTHON_COMPAT. 11 years ago
Paul Sokolovsky e566670153 objtype: Add virtual __name__ attribute. 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
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 945a01c4e3 py: Fix bug in type_store_attr, trying to store to ROM. 11 years ago
Damien George c3f1126ee8 py: Fix logic bugs in object attribute/method extraction. 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 9e6e935df0 py: Add support for user-defined iterators via __iter__, __next__. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Paul Sokolovsky 51bbf6a006 Implement support for __str__ and __repr__ special methods in classes. 11 years ago
Damien George 715101580b py: Factor and improve issubclass. 11 years ago
Paul Sokolovsky d86d22e1e7 Add mp_obj_is_subclass_fast() - intended for fast argument checking. 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 7d0bfbedd2 py: Add some qstrs to the global table. 11 years ago
Damien George 64131f3215 Add staticmethod and classmethod to builtin namespace. 11 years ago
Damien George b8ec17c2d1 py: Fix bug with dual initialisation of RT_UNARY_OP_NOT. 11 years ago
Damien George 35e2a4e6bb py: Add built-in super. 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
Damien George 9aa2a527b5 py: Tidy up BINARY_OPs; negation done by special NOT bytecode. 11 years ago
Damien George 09a0c64bce py: Improve __bool__ and __len__ dispatch; add slots for them. 11 years ago
Damien George 2259e62c37 Remove obsoleted comment. 11 years ago
Damien George 7c9c667633 py: Implement iterator support for object that has __getitem__. 11 years ago
Damien George 5fa93b6755 Second stage of qstr revamp: uPy str object can be qstr or not. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Damien George f49ba1bd9c Improve method lookup in mp_obj_class_lookup. 11 years ago
Damien George 1d6fc94c16 Implement framework for class-defined built-in operators. 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
Damien George eae16445d5 py: Implement staticmethod and classmethod (internally). 11 years ago
Damien George 004cdcebfe py: Implement base class lookup, issubclass, isinstance. 11 years ago
Damien George 062478e66d Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr. 11 years ago
Damien George 93a9b5b64d py: Proper framework for built-in 'type'. 11 years ago
John R. Lenton 9c83ec0eda Merge remote-tracking branch 'upstream/master' into dict_feats 11 years ago
John R. Lenton 3391e19068 A bit of stylistic cleanup (chose the wrong side during conflict resolution). 11 years ago