114 Commits (d38939e676d0c36d81b1763fa3fbfcb53c649710)

Author SHA1 Message Date
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
Damien George 3c658a4e75 py: Fix bug where GC collected native/viper/asm function data. 10 years ago
Damien George 0182385ab0 py: Automatically ake __new__ a staticmethod. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Damien George 58cbb4d661 py: Implement __contains__ special method. 11 years ago
Paul Sokolovsky 195de3247b objtype: Fix passing of class param to inherited classmethods. 11 years ago
Paul Sokolovsky 639863d36e objtype: Optimize stack usage mp_obj_class_lookup(). 11 years ago
Paul Sokolovsky 5473f743f3 objtype: Enable __lt__ method support for instances. 11 years ago
Chris Angelico daf973ae00 Change comments (mainly URLs) to no longer specifically say Python 3.3 11 years ago
Damien George 3f52262465 py: Allow tail call optimisation in mp_call_function_n_kw. 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George ee3fd46f13 Rename configuration variables controling Python features. 11 years ago
Paul Sokolovsky 806ea1f6ca py: Initial attempts to actually allow implementing __new__ in Python. 11 years ago
Paul Sokolovsky a8408a8abe objtype: super: Fall back to "object" lookup as last resort. 11 years ago
Paul Sokolovsky 6a410789b8 objtype: super: Add stop condition for looking up in base types. 11 years ago
Damien George 6ac5dced24 py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. 11 years ago
Paul Sokolovsky 13684fd60b objtype: Separate __new__ and __init__ methods. 11 years ago
Paul Sokolovsky da9f0924ef py, unix: Add copyright for modules I worked closely on. 11 years ago
Damien George ee7a880d6e py: Use mp_arg_check_num in more places. 11 years ago
Paul Sokolovsky ea9708092e objtuple: Go out of the way to support comparison of subclasses. 11 years ago
Paul Sokolovsky 9511f60f01 py: Don't try to "bind" types store as attributes of objects. 11 years ago
Paul Sokolovsky aa4d19a05c objtype: Comments for duplicating code in runtime.c. 11 years ago
Paul Sokolovsky 1a7403bb74 objtype: Implement ->getiter() method for instances. 11 years ago
Paul Sokolovsky d86020ac4f objtype: Don't treat inheritance from "object" as from native type. 11 years ago
Damien George d0a5bf34f7 py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George 9c5fc83e6a py, objtype.c: Rename class_ to instance_ following change of typedef. 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago