• Marc-André Lemburg's avatar
    PyObject_SetAttr() and PyObject_GetAttr() now also accept Unicode · e44e507b
    Marc-André Lemburg yazdı
    objects for the attribute name. Unicode objects are converted to
    a string using the default encoding before trying the lookup.
    
    Note that previously it was allowed to pass arbitrary objects as
    attribute name in case the tp_getattro/setattro slots were defined.
    This patch fixes this by applying an explicit string check first:
    all uses of these slots expect string objects and do not check
    for the type resulting in a core dump. The tp_getattro/setattro
    are still useful as optimization for lookups using interned
    string objects though.
    
    This patch fixes bug #113829.
    e44e507b
Adı
Son kayıt (commit)
Son güncelleme
..
.cvsignore Loading commit data...
Makefile.in Loading commit data...
abstract.c Loading commit data...
bufferobject.c Loading commit data...
classobject.c Loading commit data...
cobject.c Loading commit data...
complexobject.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...
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...
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...
xxobject.c Loading commit data...