• Brett Cannon's avatar
    Issue #14582: Import returns the module returned by a loader instead · 881535b7
    Brett Cannon yazdı
    of sys.modules when possible.
    
    This is being done for two reasons. One is to gain a little bit of
    performance by skipping an unnecessary dict lookup in sys.modules. But
    the other (and main) reason is to be a little bit more clear in how
    things should work from the perspective of import's interactions with
    loaders. Otherwise loaders can easily forget to return the module even
    though PEP 302 explicitly states they are expected to return the module
    they loaded.
    881535b7
Adı
Son kayıt (commit)
Son güncelleme
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...