SystemError always a bug?
Gerrit Holl
gerrit at nl.linux.org
Fri Jun 6 15:25:02 EDT 2003
Hi,
am I right that the following is a bug:
(Python 2.3b1+)
51 >>> class Foo(object):
51 ... def __getstate__(self): raise
51 ...
52 >>> copy.copy(Foo())
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.3/copy.py", line 87,
in copy
rv = reductor(2)
SystemError: NULL object passed to Py_BuildValue
...because it raises a SystemError?
I already submitted it as SF#749831. Python 2.2 does not have this problem
but complains about a missing __copy__. Whet an error is raised in __copy__
this problem doesn't occur. This problem originated while pickling when I
found out copying has the same effect.
yours,
Gerrit.
--
61. If the gardener has not completed the planting of the field,
leaving one part unused, this shall be assigned to him as his.
-- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
http://www.sp.nl/
More information about the Python-list
mailing list