49 Commits (fbdf2f1d63e39cb197e6cebb340af4a648c96121)

Author SHA1 Message Date
Damien George 11de8399fe py: Small changes to objstr.c, including a bug fix. 11 years ago
Damien George c49ddb9315 py: Fix configurability of builtin slice. 11 years ago
Paul Sokolovsky 5fd5af98d0 objlist: Implement support for arbitrary (3-arg) slices. 11 years ago
Paul Sokolovsky de4b9329f9 py: Refactor slice helpers, preparing to support arbitrary slicing. 11 years ago
Damien George 6ac5dced24 py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. 11 years ago
Paul Sokolovsky da9f0924ef py, unix: Add copyright for modules I worked closely on. 11 years ago
Paul Sokolovsky d915a52eb6 py: Fix prefix on few sequence helpers, was incorrectly "mp_". 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Paul Sokolovsky a224067846 py: Clear allocated, but unused memory in containers. 11 years ago
Paul Sokolovsky 26905259d0 objarray: Slice subscription operation: properly test for op subtype. 11 years ago
Damien George a3f94e0030 py: Add arg checking helper functions. 11 years ago
Paul Sokolovsky d6e12723ed objarray: Implement slice subscription. 11 years ago
Paul Sokolovsky 1355cf42f2 modstruct: Fix .calcsize() to account for struct type/alignment. 11 years ago
Damien George 57a4b4f178 py: Add typecode to buffer protocol. 11 years ago
Damien George 32ca164992 py: Tidy up array.array; add more error handling. 11 years ago
Damien George ea8d06c39d py: Add MP_OBJ_STOP_ITERATION and make good use of it. 11 years ago
Damien George 729f7b42d6 py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. 11 years ago
Paul Sokolovsky ef9124f5ff binary: Rename array accessors for clarity. 11 years ago
Damien George f4c9b33abf py: Remove DELETE_SUBSCR opcode, combine with STORE_SUBSCR. 11 years ago
Paul Sokolovsky 4dcb605ac4 py: Make bytearray a proper type. 11 years ago
Paul Sokolovsky b9cf3d3730 bytearray: Support bytearray(int) constructor. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 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 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
Damien George caac542b23 Proper support for registering builtin modules in ROM. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
xbe 9e1e8cd642 Implement str.count and add tests for it. 11 years ago
Damien George 510477557d py: Take out bitfield entries from their own structure. 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 c203324e6c objarray: Refactor to use array accessors from binary.c . 11 years ago
Paul Sokolovsky d5df6cd44a Replace global "static" -> "STATIC", to allow "analysis builds". Part 1. 11 years ago
Damien George 698ec21e46 Make mp_obj_str_get_data return char* instead of byte*. 11 years ago
Paul Sokolovsky c1d9bbc345 Implement __bool__ and __len__ via unary_op virtual method for all types. 11 years ago
Paul Sokolovsky 7f11c794a5 mp_obj_new_bytearray_by_ref(): Allow to create array by reference. 11 years ago
Paul Sokolovsky 1801421f6d bytearray: Print objects properly. 11 years ago
Paul Sokolovsky 7e652af242 array: CPython prints empty arrays inconsistently (only typecode, no []). 11 years ago
Paul Sokolovsky 11973b48b5 array.array: Allow to create empty arrays. 11 years ago
Damien George 5fa93b6755 Second stage of qstr revamp: uPy str object can be qstr or not. 11 years ago
Paul Sokolovsky 09ce05996a array: Implement iterator. 11 years ago
Paul Sokolovsky 33996685df Add len() support for arrays. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Paul Sokolovsky 427905cedd Add skeleton implementation of array.array and bytearray. 11 years ago