110 Commits (e1ae9939aca230758951f5b5b45084374e497254)

Author SHA1 Message Date
Damien George 729f7b42d6 py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. 11 years ago
Paul Sokolovsky 14de114ba8 objdict: Add __delitem__. 11 years ago
Paul Sokolovsky cd94b384a3 objdict: Add __setitem__. 11 years ago
Paul Sokolovsky 68e7c5146c py: Factor out impl of special methods for builtin types into opmethods.c 11 years ago
Damien George e22d76e73b py: Fix up object equality test. 11 years ago
Damien George 686afc5c0a py: Check that sequence has 2 elements for dict iterable constructor. 11 years ago
Paul Sokolovsky be019ce063 objdict: Implement construction from iterable of pairs. 11 years ago
Paul Sokolovsky 12a04392b9 objdict: Implement __getitem__ method. 11 years ago
Damien George f4c9b33abf py: Remove DELETE_SUBSCR opcode, combine with STORE_SUBSCR. 11 years ago
Paul Sokolovsky 7cf057aeeb objdict: Implement equality operator. 11 years ago
Paul Sokolovsky 5fedd0c3b7 py: Fix dict.copy() and low-level map/set allocation. 11 years ago
Paul Sokolovsky ea85a121f2 objdict: Support creating dict from another dict. 11 years ago
Damien George d0e824387e py: Make mp_map_lookup not allocate memory on removal. 11 years ago
Damien George 8b0535e23f py: Change module globals from mp_map_t* to mp_obj_dict_t*. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Damien George 95004e5114 py: Fix delete operation on map/dict and set objects. 11 years ago
Damien George 66edc5d899 py: Implement DELETE_SUBSCR bytecode; implement mp_obj_dict_delete. 11 years ago
Damien George d7aadcfe1b py: Allow dict constructor to take keyword arguments. 11 years ago
Damien George 15d18069c5 py: Remove old "run time" functions that were 1 liners. 11 years ago
Paul Sokolovsky f7eaf605c0 py: Fix "TypeError: 'iterator' object is not iterable", doh. 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 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 66eaf84b8c py: Replace mp_const_stop_iteration object with MP_OBJ_NULL. 11 years ago
xbe efe3422394 py: Clean up includes. 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
Paul Sokolovsky d5df6cd44a Replace global "static" -> "STATIC", to allow "analysis builds". Part 1. 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
Paul Sokolovsky c1d9bbc345 Implement __bool__ and __len__ via unary_op virtual method for all types. 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 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Damien George a11ceca807 Change int to uint for n_args in function with variable arguments. 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
John R. Lenton c1bef21920 Implemented support for `in` and `not in` operators. 11 years ago
John R. Lenton 4bee76ebca Added dict.fromkeys. Are we done with dict and #99 yet? I do think we are. 11 years ago
John R. Lenton 9ec3a87189 dict views now, refactoring later. 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 38a2da68c2 py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t. 11 years ago
John R. Lenton baa665406f Moved dict methods out to a mp_method_t. 11 years ago
John R. Lenton 88f3043e0a added a first pass of dict.update 11 years ago
John R. Lenton be8fe5be2e Added dict.setdefault 11 years ago
John R. Lenton f77dce8a5d Added dict.popitem 11 years ago
John R. Lenton 0fcbaa442f implemented dict.pop 11 years ago
John R. Lenton cd0887352d Added dict.get. 11 years ago