• 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
..
.cvsignore Loading commit data...
abstract.c Loading commit data...
bufferobject.c Loading commit data...
cellobject.c Loading commit data...
classobject.c Loading commit data...
cobject.c Loading commit data...
complexobject.c Loading commit data...
descrobject.c Loading commit data...
dictobject.c Loading commit data...
fileobject.c Loading commit data...
floatobject.c Loading commit data...
frameobject.c Loading commit data...
funcobject.c Loading commit data...
intobject.c Loading commit data...
iterobject.c Loading commit data...
listobject.c Loading commit data...
longobject.c Loading commit data...
methodobject.c Loading commit data...
moduleobject.c Loading commit data...
object.c Loading commit data...
obmalloc.c Loading commit data...
rangeobject.c Loading commit data...
sliceobject.c Loading commit data...
stringobject.c Loading commit data...
tupleobject.c Loading commit data...
typeobject.c Loading commit data...
unicodectype.c Loading commit data...
unicodeobject.c Loading commit data...
unicodetype_db.h Loading commit data...
xxobject.c Loading commit data...