141 Commits (979ab4e126dacca4d7fbbd0e71c849365ef2c947)

Author SHA1 Message Date
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
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George e233a55a29 py: Remove unnecessary BINARY_OP_EQUAL code that just checks pointers. 10 years ago
Damien George c33ecb83ba tests: Add test for when instance member overrides class member. 10 years ago
Damien George 7ee91cf861 py: Add option to cache map lookup results in bytecode. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Paul Sokolovsky 1ee1785bed showbc: Print operation mnemonic in BINARY_OP. 10 years ago
Damien George 1e9a92f84f py: Use shorter, static error msgs when ERROR_REPORTING_TERSE enabled. 10 years ago
Damien George 7860c2a68a py: Fix some macros defines; cleanup some includes. 10 years ago
Damien George ff319dffad py: Explicitly set uninitialised struct member to false. 10 years ago
Damien George 0344fa1ddf py: Fix builtin callable so it checks user-defined instances correctly. 10 years ago
Damien George 3aa09f5784 py: Use MP_OBJ_NULL instead of NULL in a few places. 10 years ago
Damien George 9c4cbe2ac0 py: Make tuple and list use mp_int_t/mp_uint_t. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Damien George 779794a680 py: Add dispatch for user defined ==, >, <=, >=. 10 years ago