SystemError always a bug?

Gerrit Holl gerrit at
Fri Jun 6 21:25:02 CEST 2003


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/", 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.


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:
Het zijn tijden om je zelf met politiek te bemoeien:

More information about the Python-list mailing list