[Tutor] copying

Daniel Yoo dyoo@hkn.EECS.Berkeley.EDU
Sun, 20 Aug 2000 23:40:29 -0700 (PDT)

> My question: Is there anyway of getting around this? I really need
> deepcopy to work regardless of what you give it since I'm getting it to
> copy the __dict__ of an object. Am I likely to run into this problem again
> with other objects? 

It appears that kjSets have a different way of copying:

  s = kjSet([1, 2, 3, 4])
  s2 = kjSet(s)

However, this seems a bit irregular --- you're right, it would be nice to
be able to call copy() on them.  kjSets do support repr(), so you could
potentially use repr() to save an object, but that might be inconvenient.  
I'll take a closer look at the source code and see if there's a better