85 Commits (86d3898e709f32bef9e44dd558e7ea5569398011)

Author SHA1 Message Date
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
Paul Sokolovsky 3754c4a040 mp_obj_get_qstr(): Handle MP_OBJ_QSTR. 11 years ago
Paul Sokolovsky bb33cc66fb Properly print MP_OBJ_QSTR objects. 11 years ago
Damien George 136b149e41 py: Add full traceback to exception printing. 11 years ago
Paul Sokolovsky d26b379eec int: Add value accessors: mp_obj_int_get() & mp_obj_int_get_checked(). 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
xyb 82e61bdc24 support int(str, basbase) 11 years ago
xyb c178ea471e Implemented int(str) in UNIX 11 years ago
Paul Sokolovsky ca318bba0d mp_obj_equal(): Compare small and long ints properly. 11 years ago
Paul Sokolovsky cc57bd2663 mp_obj_equal(): For non-trivial types, call out to type's special method. 11 years ago
Damien George eae16445d5 py: Implement staticmethod and classmethod (internally). 11 years ago
Paul Sokolovsky d6f27fe317 mp_obj_equal(): Print which types' equality not implemented before assert(). 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
Damien George 6c73ca1e75 py: add variable argument exception constructor function. 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
Damien George b97669ab94 py: Improve __build_class__. 11 years ago
ian-v 5fd8fd2c16 Revert MP_BOOL, etc. and use <stdbool.h> instead 11 years ago
ian-v 7a16fadbf8 Co-exist with C++ (issue #85) 11 years ago
Damien George 71c5181a8d Convert Python types to proper Python type hierarchy. 11 years ago
Damien George eb7bfcb286 Split qstr into pools, and put initial pool in ROM. 11 years ago
Damien George 209d1b1835 py: add int() and float() built-ins, partially implemented. 11 years ago
Damien d99b05282d Change object representation from 1 big union to individual structs. 11 years ago
Damien a3dcd9e80c py: add more Python built-in functions. 11 years ago
Damien 660365e14c py: split runtime into map, obj, builtin. 11 years ago