Implement frozen modules support #736
Copy link
Copy link
Closed
Labels
enhancementFeature requests, new feature implementationsFeature requests, new feature implementations
Description
From #258:
- If having a self-contained binary is consider a big boon, let's work towards having frozen modules a-la CPython, which are embedded into interpreter (first attempt in that direction was here: Added memzip filesystem support for teensy #147).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementFeature requests, new feature implementationsFeature requests, new feature implementations
Activity
pfalcon commentedon Jun 30, 2014
Also mentioned in #731 (comment)
pfalcon commentedon Jul 4, 2014
CPy defines C-level struct to encode frozen modules: https://docs.python.org/3.4/c-api/import.html#c._frozen . But we apparently will be better off reusing dictionary.
pfalcon commentedon Jul 4, 2014
Demo frozen modules in CPy:
__hello__,__phello__(package),__phello__.spampfalcon commentedon Jan 21, 2015
Basic frozen modules support is implemented in 640e0b2
Merge pull request micropython#736 from jepler/testsuite-serial-travis