228 Commits (acbdbcd95e6d953b08f0642a844c1808323e0b7c)

Author SHA1 Message Date
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
Damien George 2423493774 py/obj: Change sizeof to offsetof in mp_obj_malloc_var macro. 9 months ago
Jim Mussared b6a9778484 py/misc: Change sizeof to offsetof for variable-length alloc. 1 year ago
Damien George 48ffd6596e py: Change MP_UNARY_OP_INT to MP_UNARY_OP_INT_MAYBE. 1 year ago
Damien George ea7031faff py/runtime: If inplace binop fails then try corresponding normal binop. 2 years ago
David Lechner eaccaa3677 py/obj: Remove mp_generic_unary_op(). 2 years ago
Damien George b1229efbd1 all: Fix spelling mistakes based on codespell check. 2 years ago
Jim Mussared b41aaaa8a9 py/obj: Optimise code size and performance for make_new as a slot. 2 years ago
Jim Mussared 94beeabd2e py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
Jim Mussared 6da41b5900 py/obj: Merge getiter and iternext mp_obj_type_t slots. 2 years ago
Jim Mussared 165388e4eb py/objtype: Optimise slot RAM usage for instance types. 2 years ago
Jim Mussared a52cd5b07d py/obj: Add accessors for type slots and use everywhere. 3 years ago
Jim Mussared e8355eb163 py/obj: Add "full" and "empty" non-variable-length mp_obj_type_t. 3 years ago
Jim Mussared 662b9761b3 all: Make all mp_obj_type_t defs use MP_DEFINE_CONST_OBJ_TYPE. 3 years ago
Jim Mussared fb2a57800a all: Simplify buffer protocol to just a "get buffer" callback. 3 years ago
Andrew Leech 1e87b56219 py/obj: Add support for __float__ and __complex__ functions. 2 years ago
Jim Mussared 0e7bfc88c6 all: Use mp_obj_malloc everywhere it's applicable. 3 years ago
Jon Bjarni Bjarnason 1ded8a2977 py/objtype: Convert result of user __contains__ method to bool. 3 years ago
Jim Mussared 7b89ad8dbf py/vm: Add a fast path for LOAD_ATTR on instance types. 3 years ago
Damien George d4b706c4d0 py: Add option to compile without any error messages at all. 4 years ago
Jim Mussared b137d064e9 py/objtype: Handle __dict__ attribute when type has no locals. 4 years ago
Damien George 457fdf61c3 py/objtype: Support passing in an OrderedDict to type() as the locals. 4 years ago
Andrew Leech 95cbe6b65e py/objtype: Use mp_obj_dict_copy() for creating obj.__dict__ attribute. 4 years ago
Andrew Leech 28370c0450 py/objtype: Add __dict__ attribute for class objects. 4 years ago
stijn 84fa3312cf all: Format code to add space after C++-style comment start. 5 years ago
Damien George 8e048d2548 all: Clean up error strings to use lowercase and change cannot to can't. 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Jim Mussared a9a745e4b4 py: Use preprocessor to detect error reporting level (terse/detailed). 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George 9344e876bb py/objtype: Allow mp_instance_cast_to_native_base to take native obj. 5 years ago
Damien George ad7213d3c3 py: Add mp_raise_msg_varg helper and use it where appropriate. 5 years ago
Damien George 9ec1caf42e py: Expand type equality flags to 3 separate ones, fix bool/namedtuple. 5 years ago
Nicko van Someren 3aab54bf43 py: Support non-boolean results for equality and inequality tests. 5 years ago
Damien George c3450effd4 py/objtype: Make mp_obj_type_t.flags constants public, moved to obj.h. 5 years ago
Damien George bfbd94401d py: Make mp_obj_get_type() return a const ptr to mp_obj_type_t. 5 years ago
Damien George aacd618939 py/runtime: Don't allocate iter buf for user-defined types. 5 years ago
Josh Lloyd 8f9e2e325a py/objtype: Add type.__bases__ attribute. 5 years ago
Josh Lloyd 7d58a197cf py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions. 5 years ago
Damien George 2069c563f9 py: Add support for matmul operator @ as per PEP 465. 5 years ago
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