Copy construction of class instance object

Peter Hansen peter at engcorp.com
Tue May 27 15:51:58 EDT 2003


Bror Johansson wrote:
> 
> Is there a good/recommended way to emulate the copy constructor
> classinstance creation (a la C++) in Python?

"import copy" plus an appropriate line or two?  See 
http://www.python.org/doc/2.0/lib/module-copy.html




More information about the Python-list mailing list