copy a class
Turhan Ozen
txo at cs.nott.ac.uk
Thu Jun 12 09:32:19 EDT 2003
I get an error:
TypeError: can't pickle function objects
.
.
.
57: copy_reg.py:raise TypeError, " can't pickle %s objects" % base.__name__
I am making a copy of a class instance so that the original instance is
not changed when I use it in some operations. But one attribute of this
class is a reference to a function. Is this a problem? Could you please
recommend me a solution?
Thank you,
Turhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20030612/dd181b55/attachment.html>
More information about the Python-list
mailing list