diff options
| author | Guido van Rossum <guido@python.org> | 2002-03-14 23:03:14 (GMT) |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2002-03-14 23:03:14 (GMT) |
| commit | 0628dcfe1faac4926505f8c4cb1905d7700d1bf1 (patch) | |
| tree | d26abd8cbc07b888f6786938fb99e22214f4ff3d /Mac/scripts/genpluginprojects.py | |
| parent | 06b711cb6dda316753c2d405a5b1091f04322996 (diff) | |
| download | cpython-0628dcfe1faac4926505f8c4cb1905d7700d1bf1.zip cpython-0628dcfe1faac4926505f8c4cb1905d7700d1bf1.tar.gz cpython-0628dcfe1faac4926505f8c4cb1905d7700d1bf1.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.
Diffstat (limited to 'Mac/scripts/genpluginprojects.py')
0 files changed, 0 insertions, 0 deletions
