FAQ
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/

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedJun 6, '03 at 7:25p
activeJun 6, '03 at 7:25p
posts1
users1
websitepython.org

1 user in discussion

Gerrit Holl: 1 post

People

Translate

site design / logo © 2022 Grokbase