Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 18d81afd2364a4f21ad4d5a63eb7604ff019229f authored by Michael W. Hudson on 16 March 2002, 17:56:51 UTC, committed by Michael W. Hudson on 16 March 2002, 17:56:51 UTC
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.
1 parent 3df46a8
Tip revision: 18d81afd2364a4f21ad4d5a63eb7604ff019229f authored by Michael W. Hudson on 16 March 2002, 17:56:51 UTC
backport gvanrossum's checkin of
backport gvanrossum's checkin of
Tip revision: 18d81af
File | Mode | Size |
---|---|---|
.cvsignore | -rw-r--r-- | 17 bytes |
abstract.c | -rw-r--r-- | 41.7 KB |
bufferobject.c | -rw-r--r-- | 11.2 KB |
cellobject.c | -rw-r--r-- | 2.3 KB |
classobject.c | -rw-r--r-- | 55.2 KB |
cobject.c | -rw-r--r-- | 3.6 KB |
complexobject.c | -rw-r--r-- | 21.7 KB |
descrobject.c | -rw-r--r-- | 26.0 KB |
dictobject.c | -rw-r--r-- | 49.8 KB |
fileobject.c | -rw-r--r-- | 41.4 KB |
floatobject.c | -rw-r--r-- | 21.7 KB |
frameobject.c | -rw-r--r-- | 11.9 KB |
funcobject.c | -rw-r--r-- | 15.9 KB |
intobject.c | -rw-r--r-- | 24.1 KB |
iterobject.c | -rw-r--r-- | 5.8 KB |
listobject.c | -rw-r--r-- | 44.5 KB |
longobject.c | -rw-r--r-- | 52.5 KB |
methodobject.c | -rw-r--r-- | 7.1 KB |
moduleobject.c | -rw-r--r-- | 5.6 KB |
object.c | -rw-r--r-- | 47.0 KB |
obmalloc.c | -rw-r--r-- | 22.2 KB |
rangeobject.c | -rw-r--r-- | 7.0 KB |
sliceobject.c | -rw-r--r-- | 4.7 KB |
stringobject.c | -rw-r--r-- | 86.1 KB |
structseq.c | -rw-r--r-- | 8.6 KB |
tupleobject.c | -rw-r--r-- | 14.6 KB |
typeobject.c | -rw-r--r-- | 103.5 KB |
unicodectype.c | -rw-r--r-- | 8.6 KB |
unicodeobject.c | -rw-r--r-- | 139.8 KB |
unicodetype_db.h | -rw-r--r-- | 37.0 KB |
weakrefobject.c | -rw-r--r-- | 21.0 KB |
xxobject.c | -rw-r--r-- | 2.4 KB |
Computing file changes ...