[Tutor] constructors

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Wed, 10 Apr 2002 00:28:47 -0700 (PDT)


> copy.copy() or copy.deepcopy() should work pretty well with normal Python
> classes, and by defining a __copy__() function, we can control how
> functions are cloned off.
  ^^^^^^^^^

Sorry, I meant to say:

"... and by defining a __copy__() method, we can control how instances are
cloned off."


I have functions on the brain today.  *grin*


Hope this helps!