143 Commits (c8a687a8fa696a2c8ce46b36d5e14322bb1cd526)

Author SHA1 Message Date
Damien George b312a7abf5 py/builtinimport: Alias sys to usys if import weak links aren't enabled. 3 years ago
Damien George f2040bfc7e py: Rework bytecode and .mpy file format to be mostly static data. 3 years ago
Jim Mussared e0bf4611c3 py: Only search frozen modules when '.frozen' is found in sys.path. 3 years ago
Jim Mussared a7fa18c203 py/builtinimport: Refactor module importing. 5 years ago
stijn ea880d5674 py/builtinimport: Forward all debug printing to MICROPY_DEBUG_PRINTER. 3 years ago
David Lechner afcc77cebc py/builtinimport: Fix condition for including do_execute_raw_code(). 3 years ago
Damien George 53519e322a py/builtinimport: Change relative import's ValueError to ImportError. 3 years ago
Damien George d4b706c4d0 py: Add option to compile without any error messages at all. 4 years ago
stijn 84fa3312cf all: Format code to add space after C++-style comment start. 5 years ago
Damien George 8e048d2548 all: Clean up error strings to use lowercase and change cannot to can't. 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Jim Mussared a9a745e4b4 py: Use preprocessor to detect error reporting level (terse/detailed). 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George a642241a12 py/builtinimport: Adjust if-block order in find_file to clean up #if's. 5 years ago
Damien George ad7213d3c3 py: Add mp_raise_msg_varg helper and use it where appropriate. 5 years ago
Léa Saviot a7bc4d1a14 py/builtinimport: Raise exception on empty module name. 5 years ago
Damien George d2384efa80 py: Automatically provide weak links from "foo" to "ufoo" module name. 5 years ago
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