Re: Copying weakrefs

2008-02-14 Thread Rick Harris
On Feb 14, 12:31 pm, Rick Harris <[EMAIL PROTECTED]> wrote: > I am working with an object, Context, that maintains an identity map > by using the weakref.WeakValueDictionary. I would like to clone this > Context object (and objects that may have a Context object) using > copy.deepcopy(). When I try

Re: Copying weakrefs

2008-02-14 Thread Rick Harris
On Feb 14, 12:31 pm, Rick Harris <[EMAIL PROTECTED]> wrote: > I am working with an object, Context, that maintains an identity map > by using the weakref.WeakValueDictionary. I would like to clone this > Context object (and objects that may have a Context object) using > copy.deepcopy(). When I try

Copying weakrefs

2008-02-14 Thread Rick Harris
I am working with an object, Context, that maintains an identity map by using the weakref.WeakValueDictionary. I would like to clone this Context object (and objects that may have a Context object) using copy.deepcopy(). When I try to do this, the deep copy operation recurses down to the WeakValueD