Jim Mussared
a7fa18c203
py/builtinimport: Refactor module importing.
Simplify and document/comment the handling of builtin import for:
- already-loaded modules
- built-in modules
- built-in umodules (formerly weak links)
- filesystem modules
Retains existing functionality with smaller code size but should also
facilitate potential new features (built-in packages, controlling the
frozen path).
Also makes the (unix-only) -m behavior a bit more obvious and configurable.
Code size change with this commit:
bare-arm: +0 +0.000%
minimal x86: -64 -0.039%
unix x64: -32 -0.006%
unix nanbox: -4 -0.001%
stm32: -184 -0.047% PYBV10
cc3200: -120 -0.065%
esp8266: -228 -0.033% GENERIC
esp32: -268 -0.018% GENERIC[incl +16(data)]
nrf: -152 -0.087% pca10040
rp2: -256 -0.052% PICO
samd: -80 -0.057% ADAFRUIT_ITSYBITSY_M4_EXPRESS
2021-12-01 13:23:34 +11:00
..
2021-09-16 16:04:03 +10:00
2020-01-12 10:37:40 +11:00
2020-02-28 10:33:03 +11:00
2021-05-02 23:11:14 +10:00
2020-10-29 15:29:50 +11:00
2020-09-02 00:19:06 +10:00
2021-07-12 17:08:10 +10:00
2021-07-12 17:08:10 +10:00
2017-09-06 13:40:51 +10:00
2021-07-12 17:08:10 +10:00
2021-09-16 16:04:03 +10:00
2021-06-24 23:12:26 +10:00
2021-07-15 00:12:41 +10:00
2020-11-13 11:13:37 +11:00
2021-11-17 12:59:38 +11:00
2020-02-28 10:33:03 +11:00
2021-01-23 16:55:24 +11:00
2020-02-28 10:33:03 +11:00
2021-02-16 14:59:52 +11:00
2021-10-19 22:48:10 +11:00
2020-11-13 17:19:05 +11:00
2021-02-12 12:07:05 +11:00
2020-09-08 12:53:24 +10:00
2020-09-08 11:41:31 +10:00
2020-09-08 12:53:24 +10:00
2021-12-01 13:23:34 +11:00
2019-06-05 15:28:30 +10:00
2021-07-12 17:08:10 +10:00
2020-11-13 17:19:05 +11:00
2020-09-08 12:53:24 +10:00
2021-07-12 17:08:10 +10:00
2020-04-13 21:44:09 +10:00
2020-02-28 10:31:07 +11:00
2021-06-19 09:49:00 +10:00