189 Commits (2befcb8a9d54f3f9c059b45eba3e9d4e5fb13514)

Author SHA1 Message Date
Damien George 054dd33eba py: Downcase MP_xxx_SLOT_IS_FILLED inline functions. 6 years ago
Damien George eee1e8841a py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API. 6 years ago
Paul Sokolovsky 8fea833e3f py: Update my copyright info on some files. 6 years ago
Paul Sokolovsky b1d08726ee py/obj: Add support for __int__ special method. 6 years ago
Damien George 7eb29c2000 py/objtype: Remove comment about catching exc from user __getattr__. 6 years ago
Damien George dd288904db py/objtype: Support full object model for get/set/delitem special meths. 6 years ago
Damien George 2eb0170157 py/objtype: Remove TODO about storing attributes to classes. 6 years ago
Damien George b01f66c5f1 py: Shorten error messages by using contractions and some rewording. 6 years ago
Damien George 0a36a80f96 py/objtype: Clarify comment about configuring inplace op methods. 6 years ago
Damien George b630dfcc1d py: Fix compiling with debug enabled and make more use of DEBUG_printf. 6 years ago
Damien George 36c1052183 py/objtype: Optimise instance get/set/del by skipping special accessors. 7 years ago
Damien George bace1a16d0 py/objtype: Don't expose mp_obj_instance_attr(). 7 years ago
Jeff Epler c60589c02b py/objtype: Fix assertion failures in super_attr by checking type. 7 years ago
Jeff Epler 05b13fd292 py/objtype: Fix assertion failures in mp_obj_new_type by checking types. 7 years ago
Damien George dfeaea1441 py/objtype: Remove TODO comment about needing to check for property. 7 years ago
Damien George b45c8c17f0 py/objtype: Check and prevent delete/store on a fixed locals map. 7 years ago
Damien George c78ef92d78 py/objtype: Refactor object's handling of __new__ to not create 2 objs. 7 years ago
Damien George d32d22dfd7 py/objtype: Implement better support for overriding native's __init__. 7 years ago
Damien George 5e34a113ea py/runtime: Add MP_BINARY_OP_CONTAINS as reverse of MP_BINARY_OP_IN. 7 years ago
Damien George da154fdaf9 py: Add config option to disable multiple inheritance. 8 years ago
Paul Sokolovsky cada971113 py/objtype: mp_obj_new_type: Name base types related vars more clearly. 7 years ago
Paul Sokolovsky 0e80f345f8 py/objtype: Introduce MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS. 7 years ago
Paul Sokolovsky 9b9dbc5815 py/objtype: Define all special methods if requested. 7 years ago
Paul Sokolovsky 9956fd0710 py/objtype: Fit qstrs for special methods in byte type. 7 years ago
Paul Sokolovsky f2baa9ec24 py/objtype: Use CPython compatible method name for sizeof. 7 years ago
Damien George 36f7952f76 py/objtype: Clean up unary- and binary-op enum-to-qstr mapping tables. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Damien George 6c82cfc089 py/objtype: Change type of enum-to-qstr table to uint16_t to save space. 7 years ago
Paul Sokolovsky eb84a830df py/runtime: Implement dispatch for "reverse op" special methods. 7 years ago
Paul Sokolovsky 6d4cac088e py/objtype: Make sure mp_binary_op_method_name has full size again. 7 years ago
Paul Sokolovsky 60749e57f2 py/objtype: Implement fallback for instance inplace special methods. 7 years ago
Paul Sokolovsky 4556bd2acd py/objtype: mp_obj_class_lookup: Improve debug logging. 7 years ago
Paul Sokolovsky df6605eaba py/objtype: mp_obj_instance_make_new: Fix typos in comment. 7 years ago
Paul Sokolovsky 784909ce16 py/objtype: Handle NotImplemented return from binary special methods. 7 years ago
Damien George 58321dd985 all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate 7 years ago
Stefan Naumann ace9fb5405 py: Add verbose debug compile-time flag MICROPY_DEBUG_VERBOSE. 7 years ago
Paul Sokolovsky bfc2092dc5 py/modsys: Initial implementation of sys.getsizeof(). 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 761e4c7ff6 all: Remove trailing spaces, per coding conventions. 7 years ago
Damien George dd11af209d py: Add LOAD_SUPER_METHOD bytecode to allow heap-free super meth calls. 8 years ago
Damien George 4df013c8cc py/objtype: mp_obj_new_super doesn't need to be public, so inline it. 8 years ago
Damien George 816413e4b2 py: Optimise types for common case where type has a single parent type. 8 years ago
Damien George 6213ad7f46 py: Convert mp_uint_t to size_t for tuple/list accessors. 8 years ago
Damien George 94c41bb06f py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 8 years ago
Damien George d1b93ced78 py/objtype: Use size_t where appropriate, instead of mp_uint_t or uint. 8 years ago
Damien George ae8d867586 py: Add iter_buf to getiter type method. 9 years ago
Damien George adc80b8f84 py/objtype: Replace non-ASCII single-quote char with ASCII version. 8 years ago
dmazzella 18e6569166 py/objtype: Implement __delattr__ and __setattr__. 8 years ago
Paul Sokolovsky 037e6912c6 py/objtype: Implement __call__ handling for an instance w/o heap alloc. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago