174 Commits (44295c9daa8a9210e2855ef431de21362c0cb662)

Author SHA1 Message Date
Damien George 729f7b42d6 py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. 11 years ago
Damien George ee01411036 py: Add len(bytes). 11 years ago
Damien George 0e4ba25834 py: Fix SyntaxError exception: don't have a block name, so pass NULL. 11 years ago
Damien George 8a1cab952f py: Fix mp_get_buffer, and use it in more places. 11 years ago
Paul Sokolovsky f130ca1f60 py: Make bytes type hashable. 11 years ago
Damien George a5c82a8187 py: Convert some macros to inline functions (in obj.h). 11 years ago
Damien George e22d76e73b py: Fix up object equality test. 11 years ago
Damien George a9ddd6d9df py: Simplify and improve mp_get_index. 11 years ago
Damien George b8a053aeb1 py: Implement float and complex == and !=. 11 years ago
Damien George 686afc5c0a py: Check that sequence has 2 elements for dict iterable constructor. 11 years ago
Damien George b5fbd0ba87 py: Add mp_obj_is_integer; make mp_get_index check for long int. 11 years ago
Paul Sokolovsky 3aa8ee7c9e py: Add mp_get_buffer(), mp_get_buffer_raise() convenience functions to API. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Paul Sokolovsky e99841be69 mp_obj_get_int(): Add warning against adding implicit float->int conversion. 11 years ago
Paul Sokolovsky 91cbe6033a py: Allow types to be hashable. 11 years ago
Damien George 36f0ee1a54 py: Remove mp_obj_less (use mp_binary_op(MP_BINARY_OP_LESS..) instead). 11 years ago
Damien George 8270e3853d py: More robust int conversion and overflow checking. 11 years ago
Damien George e09320adb5 py: Remove implicit conversion from int to float. 11 years ago
Dave Hylands baf6f14deb Enhance str.format support 11 years ago
Paul Sokolovsky a96d3d0840 objexcept: No more magic messages in exceptions, only exception arguments. 11 years ago
Damien George e0f2979aed py: Add equality test for None object. 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 0ae518fb9e mp_obj_print_exception(): Assert that traceback has sane number of entries. 11 years ago
Damien George 0aa5d51cf1 py: Support mpz -op- float, mpz -op- complex, and complex -op- mpz. 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 24ff063e80 py: Remove obsolete declarations; make mp_obj_get_array consistent. 11 years ago
Damien George eabdf6718a py: Add function to convert long int to float. 11 years ago
Damien George 7f8be59111 py: Allow hashing of functions and tuples. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
xbe c5d70ba48b Fix issues in str.count implementation. 11 years ago
xbe 9e1e8cd642 Implement str.count and add tests for it. 11 years ago
Damien George 0c36da0b59 Implement ROMable modules. Add math module. 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 4e836fb4ea mp_obj_equal(): Instead of assert(), throw NotImplementedError. 11 years ago
Paul Sokolovsky 557c9d5264 unix microsocket: Add dummy makefile() method. 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 62ad189a65 py: Add compile option to enable/disable source line numbers. 11 years ago
Damien George b051e7d167 py: Simpler implementation of mp_obj_callable. 11 years ago
Paul Sokolovsky c3e72a8cc8 mp_obj_is_callable(): Only object types can be callable. 11 years ago
Damien George 5fa93b6755 Second stage of qstr revamp: uPy str object can be qstr or not. 11 years ago
Damien George e6a4ab4be1 py: Remove implicit conversion of float to int in mp_obj_get_int(). 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 e6da0df6d1 mp_obj_get_type_str(): Handle MP_OBJ_QSTR. 11 years ago
Paul Sokolovsky dff3f896d7 mp_identity(): Add generic identity function. 11 years ago