126 Commits (9c5262f25ef29950da241380c76e035b3a8cec38)

Author SHA1 Message Date
Paul m. p. P a8e3201b37 py/builtinimport: Populate __file__ when importing frozen or mpy files. 5 years ago
Sean Burton e33bc59712 py: Remove calls to file reader functions when these are disabled. 6 years ago
Damien George 209936880d py/builtinimport: Add compile-time option to disable external imports. 7 years ago
Damien George 6e7819ee2e py/objmodule: Factor common code for calling __init__ on builtin module. 7 years ago
Damien George f1c9e7760d py/builtinimport: Call __init__ for modules imported via a weak link. 8 years ago
Damien George 1e5a33df41 py: Convert all uses of alloca() to use new scoped allocation API. 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 a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Stefan Naumann ace9fb5405 py: Add verbose debug compile-time flag MICROPY_DEBUG_VERBOSE. 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 2f7fad66a2 py/builtinimport: Remove unreachable code for relative imports. 8 years ago
Damien George 48d867b4a6 all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers. 8 years ago
Ville Skyttä ca16c38210 various: Spelling fixes 8 years ago
Paul Sokolovsky edc02bd952 unix/main: Implement -m option for packages. 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 6213ad7f46 py: Convert mp_uint_t to size_t for tuple/list accessors. 8 years ago
Damien George 94c41bb06f py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 8 years ago
Damien George 1831034be1 py: Allow lexer to raise exceptions during construction. 8 years ago
Damien George 9de91914fb py: Move weak-link map to objmodule.c, and expose module maps as public. 8 years ago
Damien George d23834bc96 py/builtinimport: Remove unreachable code and change obj-import comment. 8 years ago
Damien George 63e291de70 py/builtinimport: Raise ValueError for bad relative import, per CPython. 8 years ago
Damien George b528e9a428 py/builtinimport: Fix bug when importing names from frozen packages. 8 years ago
Damien George d9047d3c8a py/builtinimport: Support importing packages from compiled .mpy files. 8 years ago
Damien George 6810f2c134 py: Factor persistent code load/save funcs into persistentcode.[ch]. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago
Paul Sokolovsky 7ea3fa2641 py/builtinimport: Fix nanbox build after change to better handle -m modules. 8 years ago
Delio Brignoli 21c719bd0a builtinimport: add the module specified by -m to sys.modules as '__main__' 8 years ago
Paul Sokolovsky ae184cb9de py/builtinimport: Disable "imported as namespace package" warning. 8 years ago
Damien George 274952a117 py: Allow to stat and import frozen mpy files using new frozen "VFS". 9 years ago
Paul Sokolovsky 2c573f00b8 py/builtinimport: Unbreak bare-arm build. 9 years ago
Paul Sokolovsky 8a2970e136 py/builtinimport: Unbreak minimal build. 9 years ago
Paul Sokolovsky fb742cdc12 py/{builtinimport,frozenmod}: Rework frozen modules support to support packages. 9 years ago
Damien George 0a2e9650f5 py: Add ability to have frozen persistent bytecode from .mpy files. 9 years ago
Damien George 4b72b3a133 py: Change type signature of builtin funs that take variable or kw args. 9 years ago
Damien George dd5353a405 py: Add MICROPY_ENABLE_COMPILER and MICROPY_PY_BUILTINS_EVAL_EXEC opts. 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 432e8275a9 py: Allow to import compiled bytecode files. 9 years ago
Paul Sokolovsky 9780e55274 builtinimport: Fix running package submodule with -m. 10 years ago
Paul Sokolovsky c4045f57e3 builtinimport: Catch case when relative import happens without active package. 10 years ago
Paul Sokolovsky 07408cbd1f unix: Make micropython -m <module> work for frozen modules. 10 years ago
Damien George 044c473de2 py: Add %q format support to mp_[v]printf, and use it. 10 years ago
Paul Sokolovsky 9e6c82960e builtinimport: Revamp&refactor handling of relative imports. 10 years ago
Paul Sokolovsky 078172dcab builtinimport: Improve debugging output. 10 years ago
Damien George 827b0f747b py: Change vstr_null_terminate -> vstr_null_terminated_str, returns str. 10 years ago
Damien George 0d3cb6726d py: Change vstr so that it doesn't null terminate buffer by default. 10 years ago
Paul Sokolovsky 8064892c9b builtinimport: Make sure that qstr is used properly to load frozen modules. 10 years ago
Paul Sokolovsky 640e0b221e py: Implement very simple frozen modules support. 10 years ago