This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rharris
Recipients rharris
Date 2008-02-14.21:22:32
SpamBayes Score 0.017584417
Marked as misclassified No
Message-id <1203024154.91.0.456074381022.issue2116@psf.upfronthosting.co.za>
In-reply-to
Content
The copy module will not properly copy/deepcopy weakrefs, it will bomb
out with __new__ not having enough args. This is a problem b/c it makes
deepcopying of objects that make use of Weak(Key|Value)Dictionaries
difficult.

To replicate:

import copy, weakref
class Test(object): pass
t = Test()
wr = weakref.ref(t)
wr_new = copy.copy(wr)
History
Date User Action Args
2008-02-14 21:22:35rharrissetspambayes_score: 0.0175844 -> 0.017584417
recipients: + rharris
2008-02-14 21:22:35rharrissetspambayes_score: 0.0175844 -> 0.0175844
messageid: <1203024154.91.0.456074381022.issue2116@psf.upfronthosting.co.za>
2008-02-14 21:22:34rharrislinkissue2116 messages
2008-02-14 21:22:33rharriscreate