Staging
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
History
Tip revision: 18d81afd2364a4f21ad4d5a63eb7604ff019229f authored by Michael W. Hudson on 16 March 2002, 17:56:51 UTC
backport gvanrossum's checkin of
Tip revision: 18d81af
File Mode Size
RPM
ACKS -rw-r--r-- 7.1 KB
AIX-NOTES -rw-r--r-- 7.3 KB
BeOS-NOTES -rw-r--r-- 1.4 KB
BeOS-setup.py -rw-r--r-- 24.6 KB
HISTORY -rw-r--r-- 305.2 KB
HPUX-NOTES -rw-r--r-- 1.0 KB
NEWS -rw-r--r-- 125.7 KB
PURIFY.README -rw-r--r-- 3.6 KB
Porting -rw-r--r-- 1.9 KB
README -rw-r--r-- 1.2 KB
RFD -rw-r--r-- 3.9 KB
cheatsheet -rw-r--r-- 99.9 KB
find_recursionlimit.py -rw-r--r-- 2.2 KB
gdbinit -rw-r--r-- 898 bytes
indent.pro -rw-r--r-- 66 bytes
python-mode.el -rw-r--r-- 120.6 KB
python.man -rw-r--r-- 11.4 KB
setuid-prog.c -rw-r--r-- 5.3 KB
unicode.txt -rw-r--r-- 112 bytes
vgrindefs -rw-r--r-- 505 bytes

README

back to top