76 Commits (f935bce3c52e8eb8f48f7f4947b1210074c359a6)

Author SHA1 Message Date
Damien George 58f00d7c0e py/modbuiltins: Use standard arg-parsing helper func for builtin print. 7 years ago
Damien George d5cf5f70fd py/modbuiltins: Slightly simplify code in builtin round(). 7 years ago
Damien George 4601759bf5 py/objstr: Remove "make_qstr_if_not_already" arg from mp_obj_new_str. 7 years ago
Damien George 69da74e538 py/modbuiltins: Use existing utf8_get_char helper in builtin ord func. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Paul Sokolovsky 9dce823cfd py/modbuiltins: Implement abs() by dispatching to MP_UNARY_OP_ABS. 7 years ago
Damien George 0f12082f5b py,extmod,stmhal: Use "static inline" for funcs that should be inline. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Tom Collins 145796f037 py,extmod: Some casts and minor refactors to quiet compiler warnings. 7 years ago
Damien George 7bd10c1ffe py: Change mp_uint_t to size_t in builtins code. 7 years ago
Damien George 48d867b4a6 all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers. 8 years ago
Damien George bc76302eab py/modbuiltins: Add core-provided version of input() function. 8 years ago
Tom Collins f06d0839bd py/modsys: update conditionals for code referencing sys.stdout 8 years ago
Damien George 6b34107537 py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg. 8 years ago
Damien George 94c41bb06f py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 8 years ago
Damien George c236ebfea7 py/modbuiltins: Allow round() to return a big int if necessary. 8 years ago
Damien George 125eae1ba3 py/modbuiltins: For round() builtin use nearbyint instead of round. 8 years ago
Damien George ae8d867586 py: Add iter_buf to getiter type method. 9 years ago
Nicko van Someren df0117c8ae py: Added optimised support for 3-argument calls to builtin.pow() 8 years ago
Damien George 9f04dfb568 py: Add builtin help function to core, with default help msg. 8 years ago
Damien George 7318949c46 py/modbuiltins: Remove unreachable code. 8 years ago
Damien George 5076e5c339 py: Add "delattr" builtin, conditional on MICROPY_CPYTHON_COMPAT. 8 years ago
Damien George bdb0d2d0bc py/modbuiltins: Add builtin "slice", pointing to existing slice type. 8 years ago
Paul Sokolovsky 3730090d8f py/{modbuiltins,obj}: Use MP_PYTHON_PRINTER where possible. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago
Damien George 93c4a6a3f7 all: Remove 'name' member from mp_obj_module_t struct. 8 years ago
Paul Sokolovsky c4a8004933 py: Get rid of assert() in method argument checking functions. 8 years ago
pohmelie 81ebba7e02 py: add async/await/async for/async with syntax 9 years ago
Paul Sokolovsky b67d098841 py/modbuiltins: __repl_print__: Add comment about setting "_" special var. 9 years ago
Damien George 2a1cca20b1 py: Fix passing of some wide int types to printf varg format list. 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 4b72b3a133 py: Change type signature of builtin funs that take variable or kw args. 9 years ago
Damien George 43cab7c283 py/modbuiltins: Fix access of mp_obj_t variable, wrap in MP_OBJ_TO_PTR. 9 years ago
Dave Hylands 7281d95aee py: Make dir report instance members 9 years ago
Damien George 1b0aab621b py: Change struct and macro for builtin fun so they can be type checked. 9 years ago
Damien George dd5353a405 py: Add MICROPY_ENABLE_COMPILER and MICROPY_PY_BUILTINS_EVAL_EXEC opts. 9 years ago
pohmelie c6ee273410 py: Add min/max "default" keyword argument 9 years ago
pohmelie 354e688d8e py: Add MICROPY_PY_BUILTINS_MIN_MAX, disable for minimal ports. 9 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 cbf7674025 py: Add MP_ROM_* macros and mp_rom_* types and use them. 9 years ago
Damien George 0e3f29cc99 py: Check that second argument to hasattr is actually a string. 9 years ago
Damien George aaef1851a7 py: Add mp_obj_is_float function (macro) and use it where appropriate. 9 years ago
Damien George 035a0a2b6e py: Add support for _ in REPL to hold last computed value. 9 years ago
Paul Sokolovsky 1b586f3a73 py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming. 9 years ago
Paul Sokolovsky 21ffa7c4ba modbuiltins: Consistently use indentation for #if. 9 years ago
Paul Sokolovsky 22ff397fb1 py: Add MICROPY_PY_BUILTINS_FILTER, disable for minimal ports. 9 years ago
Sebastian Plamauer 1e8ca3a3cf modbuiltins: Implement round() to precision. 9 years ago
Damien George c5029bcbf3 py: Add MP_BINARY_OP_DIVMOD to simplify and consolidate divmod builtin. 10 years ago
Damien George d7192fe68c py: Expose KeyboardInterrupt in builtins module. 10 years ago
Damien George c2a4e4effc py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. 10 years ago