86 Commits (e1ae9939aca230758951f5b5b45084374e497254)

Author SHA1 Message Date
Damien George 582b190764 py: Add checks for stream objects in print() and sys.print_exception(). 6 years ago
Jan Klusacek b318ebf101 py/modbuiltins: Add support for rounding integers. 7 years ago
Damien George 3678a6bdc6 py/modbuiltins: Make built-in dir support the __dir__ special method. 7 years ago
Damien George 29d28c2574 py/modbuiltins: In built-in dir make use of mp_load_method_protected. 7 years ago
Damien George 529860643b py/modbuiltins: Make built-in hasattr work properly for user types. 7 years ago
Damien George eb88803ac8 py/{modbuiltins,repl}: Start qstr probing from after empty qstr. 7 years ago
Damien George 98647e83c7 py/modbuiltins: Simplify and generalise dir() by probing qstrs. 7 years ago
Damien George e98ff40604 py/modbuiltins: Simplify casts from char to byte ptr in builtin ord. 7 years ago
Damien George 19aee9438a py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions. 7 years ago
Damien George 771dfb0826 py/modbuiltins: For builtin_chr, use uint8_t instead of char for array. 7 years ago
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