155 Commits (e30ba2f1c7d0cccaf62640aa97de9fd6e82dcab7)

Author SHA1 Message Date
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
Paul Sokolovsky c7fba524cb py/objtype: Inherit protocol vtable from base class only if it exists. 9 years ago
Paul Sokolovsky 413c3e10b4 py/objtype: instance: Inherit protocol vtable from a base class. 9 years ago
Damien George 0be6359f39 py: When printf'ing an object as a pointer, pass the concrete pointer. 9 years ago
Damien George 5b3f0b7f39 py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*. 9 years ago
Damien George a0c97814df py: Change type of .make_new and .call args: mp_uint_t becomes size_t. 9 years ago
stijn 3c014a67ea py: Implement __dict__ for instances. 10 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George c5029bcbf3 py: Add MP_BINARY_OP_DIVMOD to simplify and consolidate divmod builtin. 10 years ago
Damien George c50772d19f py: Add mp_obj_get_int_truncated and use it where appropriate. 10 years ago
Damien George c2a4e4effc py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. 10 years ago
Damien George 47b9809d23 py: Check that arg to object.__new__ is a user-defined type. 10 years ago
Damien George 044c473de2 py: Add %q format support to mp_[v]printf, and use it. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Damien George b1bbe966c4 py: Combine load_attr and store_attr type methods into one (attr). 10 years ago
Damien George 56606f3475 py: Implement delete for property and descriptors. 10 years ago
Damien George 2801e6fad8 py: Some trivial cosmetic changes, for code style consistency. 10 years ago
Paul Sokolovsky 1bc534247c objtype: Add special unary methods __pos__, __neg__, __invert__. 10 years ago
stijn 28fa84b445 py: Add optional support for descriptors' __get__ and __set__ methods. 10 years ago
Damien George 55b74d1ff5 py: Combine duplicated code that converts members from a lookup. 10 years ago
Paul Sokolovsky 3425431370 objtype: More comment clarification for attribute lookup. 10 years ago
Paul Sokolovsky 1954d8021f objtype: Clarify comment why we call mp_load_method_maybe() for native sub-obj. 10 years ago
Paul Sokolovsky 3cb766344d objtype: Refactor dealing with native sub-objects for clarity. 10 years ago
Paul Sokolovsky f0dc0d50e3 objtype: mp_obj_class_lookup: Remove implausible condition. 10 years ago
Paul Sokolovsky 2b67a40fdb objtype: Clarify comment for mp_obj_class_lookup(). 10 years ago
Paul Sokolovsky 66c11ec581 objtype: Clarify code by consistently using common subexpression. 10 years ago
Paul Sokolovsky e06cf89f04 py: Add few more special methods. 10 years ago
Damien George f6532bb9e0 py: Simplify and remove redundant code for __iter__ method lookup. 10 years ago
stijn 1b8e76b8e6 py: Cleanup duplication in instance_is_callable/instance_call. 10 years ago
Damien George d0df10b2c6 py: Don't unnecessarily create a bound method. 10 years ago
Damien George 48244044a2 py: Allow subclass of native object to delegate to the native buffer_p. 10 years ago
Damien George 5f97aaeca4 py: Fix instance lookup, since object is not a real type. 10 years ago
Paul Sokolovsky 98c4bc3fac py: Add MICROPY_PY_ALL_SPECIAL_METHODS and __iadd__ special method under it. 10 years ago
Damien George a5efcd4745 py: Specify unary/binary op name in TypeError error message. 10 years ago
Damien George 50149a5730 py: Use mp_arg_check_num in some _make_new functions. 10 years ago