Skip to content

Commit b5ebfb8

Browse files
committed
py/builtinimport.c: Simplify module importing.
Clear up the code path for importing: - already-loaded modules - built-in modules - built-in umodules (formerly weak links) - filesystem modules - (...and in the future, built-in packages) Also only enables the -m behavior with a (unix-only) flag. Code size reduction of XX.
1 parent 8db5d2d commit b5ebfb8

File tree

5 files changed

+265
-239
lines changed

5 files changed

+265
-239
lines changed

ports/unix/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (1)
8282
#endif
8383
#define MICROPY_MODULE_WEAK_LINKS (1)
84+
#define MICROPY_ENABLE_MODULE_OVERRIDE_MAIN (1)
8485
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
8586
#define MICROPY_PY_FUNCTION_ATTRS (1)
8687
#define MICROPY_PY_DESCRIPTORS (1)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy