summaryrefslogtreecommitdiffstats
path: root/Misc/gdbinit
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-03-14 23:05:54 (GMT)
committerGuido van Rossum <guido@python.org>2002-03-14 23:05:54 (GMT)
commit8c8425531638fcab2093639d29c413cdb3bea787 (patch)
tree2506d03952de8ec487ffd333d4d3f80cc119d177 /Misc/gdbinit
parent0628dcfe1faac4926505f8c4cb1905d7700d1bf1 (diff)
downloadcpython-8c8425531638fcab2093639d29c413cdb3bea787.zip
cpython-8c8425531638fcab2093639d29c413cdb3bea787.tar.gz
cpython-8c8425531638fcab2093639d29c413cdb3bea787.tar.bz2
"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. Bugfix candidate (also the checkin to typeobject.c, of course).
Diffstat (limited to 'Misc/gdbinit')
0 files changed, 0 insertions, 0 deletions