• Tim Peters's avatar
    PyObject_Dir(): Merge in __members__ and __methods__ too (if they exist, · 305b5857
    Tim Peters yazdı
    and are lists, and then just the string elements (if any)).
    
    There are good and bad reasons for this.  The good reason is to support
    dir() "like before" on objects of extension types that haven't migrated
    to the class introspection API yet.  The bad reason is that Python's own
    method objects are such a type, and this is the quickest way to get their
    im_self etc attrs to "show up" via dir().  It looks much messier to move
    them to the new scheme, as their current getattr implementation presents
    a view of their attrs that's a untion of their own attrs plus their
    im_func's attrs.  In particular, methodobject.__dict__ actually returns
    methodobject.im_func.__dict__, and if that's important to preserve it
    doesn't seem to fit the class introspection model at all.
    305b5857
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...