• Guido van Rossum's avatar
    A tentative fix for SF bug #503837 (Roeland Rengelink): · 340cbe74
    Guido van Rossum yazdı
    type.__module__ problems (again?)
    
    This simply initializes the __module__ local in a class statement from
    the __name__ global.  I'm not 100% sure that this is the correct fix,
    although it usually does the right thing.  The problem is that if the
    class statement executes in a custom namespace, the __name__ global
    may be taken from __builtins__, in which case it would have the value
    __builtin__, or it may not exist at all (if the custom namespace also
    has a custom __builtins__), in which case the class statement will
    fail.
    
    Nevertheless, unless someone finds a better solution, this is a 2.2.1
    bugfix too.
    340cbe74
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
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...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...