• Guido van Rossum's avatar
    SF bug 542984. · d99b3e78
    Guido van Rossum yazdı
    Change type_get_doc (the get function for __doc__) to look in tp_dict
    more often, and if it finds a descriptor in tp_dict, to call it (with
    a NULL instance).  This means you can add a __doc__ descriptor to a
    new-style class that returns instance docs when called on an instance,
    and class docs when called on a class -- or the same docs in either
    case, but lazily computed.
    
    I'll also check this into the 2.2 maintenance branch.
    d99b3e78
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...
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...