• Michael W. Hudson's avatar
    backport gvanrossum's checkin of · 18d81afd
    Michael W. Hudson yazdı
        revision 2.129 of typeobject.c
    
    "Fix" for SF bug #520644: __slots__ are not pickled.
    
    As promised in my response to the bug report, I'm not really fixing
    it; in fact, one could argule over what the proper fix should do.
    Instead, I'm adding a little magic that raises TypeError if you try to
    pickle an instance of a class that has __slots__ but doesn't define or
    override __getstate__.  This is done by adding a bozo __getstate__
    that always raises TypeError.
    18d81afd
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...
structseq.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...
weakrefobject.c Loading commit data...
xxobject.c Loading commit data...