• 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
..
RPM Loading commit data...
TextMate/Python-Dev.tmbundle Loading commit data...
Vim Loading commit data...
ACKS Loading commit data...
HISTORY Loading commit data...
NEWS Loading commit data...
Porting Loading commit data...
README Loading commit data...
README.AIX Loading commit data...
README.coverity Loading commit data...
README.valgrind Loading commit data...
SpecialBuilds.txt Loading commit data...
gdbinit Loading commit data...
indent.pro Loading commit data...
python-config.in Loading commit data...
python-wing3.wpr Loading commit data...
python-wing4.wpr Loading commit data...
python.man Loading commit data...
python.pc.in Loading commit data...
svnmap.txt Loading commit data...
valgrind-python.supp Loading commit data...
vgrindefs Loading commit data...