• Guido van Rossum's avatar
    Redo the PyMethod attributes using a dir()-friendly approach, creating · f0b35e15
    Guido van Rossum yazdı
    descriptors for each attribute.  The getattr() implementation is
    similar to PyObject_GenericGetAttr(), but delegates to im_self instead
    of looking in __dict__; I couldn't do this as a wrapper around
    PyObject_GenericGetAttr().
    
    XXX A problem here is that this is a case of *delegation*.  dir()
    doesn't see exactly the same attributes that are actually defined;
    e.g. if the delegate is a Python function object, it supports
    attributes like func_code etc., but these are not visible to dir(); on
    the other hand, dynamic function attributes (stored in the function's
    __dict__) *are* visible to dir().  Maybe we need a mechanism to tell
    dir() about the delegation mechanism?  I vaguely recall seeing a
    request in the newsgroup for a more formal definition of attribute
    delegation too.  Sigh, time for a new PEP.
    f0b35e15
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...