- Feb 12, 2019
-
-
Damien George authored
-
- Feb 05, 2019
-
-
Yonatan Goldschmidt authored
-
- Jul 08, 2018
-
-
Damien George authored
mp_obj_module_get_globals() returns a mp_obj_dict_t*, and type->locals_dict is a mp_obj_dict_t*, so access the map entry of the dict directly instead of needing to cast this mp_obj_dict_t* up to an object and then calling the mp_obj_dict_get_map() helper function.
-
- May 02, 2018
-
-
Damien George authored
-
- Nov 16, 2017
-
-
Damien George authored
This patch simplifies the str creation API to favour the common case of creating a str object that is not forced to be interned. To force interning of a new str the new mp_obj_new_str_via_qstr function is added, and should only be used if warranted. Apart from simplifying the mp_obj_new_str function (and making it have the same signature as mp_obj_new_bytes), this patch also reduces code size by a bit (-16 bytes for bare-arm and roughly -40 bytes on the bare-metal archs).
-
- Sep 12, 2017
-
-
Damien George authored
As a pointer (const char *) it takes up an extra word of storage which is in RAM.
-
- Sep 10, 2017
-
-
Damien George authored
Reduces code size by about 10 bytes.
-
- Jan 22, 2017
-
-
Damien George authored
This is how CPython does it, and it's very useful to help users discover the available modules for a given port, especially built-in and frozen modules. The function does not list modules that are in the filesystem because this would require a fair bit of work to do correctly, and is very port specific (depending on the filesystem).
-
Damien George authored
This builtin is configured using MICROPY_PY_BUILTINS_HELP, and is disabled by default.
-
- Oct 21, 2016
-
-
Erik Moqvist authored
This patch introduces MP_PYTHON_PRINTER for general use.
-
- Apr 25, 2016
-
-
Colin Hogben authored
Several ports use identical code for the 1-argument form of the builtin help function. Move this code to a library function to allow easier re-use by ports.
-