• Tim Peters's avatar
    builtin_dir(): Treat classic classes like types. Use PyDict_Keys instead · 37a309db
    Tim Peters yazdı
    of PyMapping_Keys because we know we have a real dict.  Tolerate that
    objects may have an attr named "__dict__" that's not a dict (Py_None
    popped up during testing).
    
    test_descr.py, test_dir():  Test the new classic-class behavior; beef up
    the new-style class test similarly.
    
    test_pyclbr.py, checkModule():  dir(C) is no longer a synonym for
    C.__dict__.keys() when C is a classic class (looks like the same thing
    that burned distutils! -- should it be *made* a synoym again?  Then it
    would be inconsistent with new-style class behavior.).
    37a309db
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...