diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-12 11:46:04 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-12 20:18:40 +0100 |
commit | c14a81662c1df812c0c6b4299f97966302f16477 (patch) | |
tree | 68d9169d0ddaf4de9c531ca1212fad6b805bf42b /py/parse.c | |
parent | 3c34d4140df74d59e56ccd0465408fecf8876c88 (diff) | |
download | micropython-c14a81662c1df812c0c6b4299f97966302f16477.tar.gz micropython-c14a81662c1df812c0c6b4299f97966302f16477.zip |
py: Add module weak link support.
With this patch a port can enable module weak link support and provide
a dict of qstr->module mapping. This mapping is looked up only if an
import fails to find the requested module in the filesystem.
This allows to have the builtin module named, eg, usocket, and provide
a weak link of "socket" to the same module, but this weak link can be
overridden if a file by the name "socket.py" is found in the import
path.
Diffstat (limited to 'py/parse.c')
0 files changed, 0 insertions, 0 deletions