3040 Commits (505671b698490918fe0ea6c6dfdab8c0b25339be)

Author SHA1 Message Date
Damien George 5e34a113ea py/runtime: Add MP_BINARY_OP_CONTAINS as reverse of MP_BINARY_OP_IN. 7 years ago
Damien George 5b2f62aff3 py/opmethods: Include the correct header for binary op enums. 7 years ago
Damien George 9783ac282e py/runtime: Simplify handling of containment binary operator. 7 years ago
Damien George d5cf5f70fd py/modbuiltins: Slightly simplify code in builtin round(). 7 years ago
Damien George a07fc5b640 py/objfloat: Allow float() to parse anything with the buffer protocol. 7 years ago
Paul Sokolovsky 8667a5f053 py/objnamedtuple: Allow to reuse namedtuple basic functionality. 7 years ago
Damien George da154fdaf9 py: Add config option to disable multiple inheritance. 8 years ago
Damien George 8d956c26d1 py/objstr: When constructing str from bytes, check for existing qstr. 7 years ago
Damien George 1f1d5194d7 py/objstr: Make mp_obj_new_str_of_type check for existing interned qstr. 7 years ago
Damien George 4601759bf5 py/objstr: Remove "make_qstr_if_not_already" arg from mp_obj_new_str. 7 years ago
Christopher Arndt 1871a924c9 py/mkenv.mk: Use $(PYTHON) consistently when calling Python tools. 7 years ago
Damien George 564a95cb04 py/emitnative: Clean up asm macro names so they have dest as first arg. 7 years ago
stijn 79ed58f87b py/objnamedtuple: Add _asdict function if OrderedDict is supported 7 years ago
Paul Sokolovsky cada971113 py/objtype: mp_obj_new_type: Name base types related vars more clearly. 7 years ago
Paul Sokolovsky 1b146e9de9 py/mpconfig: Introduce reusable MP_HTOBE32(), etc. macros. 7 years ago
Damien George 487dbdb267 py/compile: Use alloca instead of qstr_build when compiling import name. 7 years ago
Damien George 02b4b23319 Revert "py/{mkenv.mk,mkrules.mk}: Append .exe for Windows executable files." 7 years ago
Eric Poulsen 74ec52d857 extmod/modussl: Add finaliser support for ussl objects. 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
Damien George f4059dcc0c all: Use NULL instead of "" when calling mp_raise exception helpers. 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 93ce125abe py/argcheck: Remove #if guard around terse error message helper func. 7 years ago
Damien George 37282f8fc1 extmod/uos_dupterm: Update uos.dupterm() and helper funcs to have index. 7 years ago
Damien George c59fc1419d py/emitnative: Simplify binary op emitter, no need to check inplace ops. 7 years ago
Damien George a3afa8cfc4 py/emitnative: Implement floor-division and modulo for viper emitter. 7 years ago
Damien George 69da74e538 py/modbuiltins: Use existing utf8_get_char helper in builtin ord func. 7 years ago
Damien George dc948e4d54 py/formatfloat: Use standard isinf, isnan funcs instead of custom ones. 7 years ago
Damien George 08a196697c py/formatfloat: Don't print the negative sign of a NaN value. 7 years ago
Damien George d8d4e4dfbe py/modmath: Convert log2 macro into a function. 7 years ago
Damien George 25e140652b py/modmath: Add full checks for math domain errors. 7 years ago
Damien George 933eab46fc py/bc: Update opcode_format_table to match the bytecode. 7 years ago
Damien George ff93fd4f50 py/persistentcode: Bump .mpy version number to version 3. 7 years ago
Damien George 36f7952f76 py/objtype: Clean up unary- and binary-op enum-to-qstr mapping tables. 7 years ago
Damien George 0864a6957f py: Clean up unary and binary enum list to keep groups together. 7 years ago
Damien George 23faf88cab py/mpprint: Only check for null string printing when NDEBUG not defined. 7 years ago
Damien George dfa563c71f py/objstr: Make empty bytes object have a null-terminating byte. 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
chrismas9 3289b9b7a7 py/{mkenv.mk,mkrules.mk}: Append .exe for Windows executable files. 7 years ago
Damien George 1394258f37 py/objset: Include the failed key in a KeyError raised from set.remove. 7 years ago
Damien George 2ac1364688 py/objset: Check that RHS of a binary op is a set/frozenset. 7 years ago
Damien George 01978648fd py/objset: Simplify set and frozenset by separating their locals dicts. 7 years ago
Damien George bdc6e86e07 py/objfloat: Support raising a negative number to a fractional power. 7 years ago
David Lechner 62849b7010 py: Add config option to print warnings/errors to stderr. 7 years ago
Paul Sokolovsky 9d836fedbd py: Clarify which mp_unary_op_t's may appear in the bytecode. 7 years ago
Anton Patrushev f008263022 py/persistentcode: Define mp_raw_code_save_file() for any unix target. 7 years ago
Damien George 8edc2e4b14 py/runtime0: Add comments about unary/binary-op enums used in bytecode. 7 years ago
Damien George e2ba45c35f py/vm: Use lowercase letter at start of exception message. 7 years ago