copy.deepcopy question

Markus von Ehr markus.vonehr at ipm.fhg.de
Tue Nov 12 03:46:37 EST 2002


Hi,

I have one object called Reference.
Several Spectra objects include their own Reference object.
To assign the Reference I want to pass the Reference object to
several Spectra objects which have to make a copy to a member variable.
Every Spectra need its own copy because different Spectras may have
different References.

Is copy.deepcopy the right way to copy the Reference object to
a Spectras member variable?

Thanks for any comments,

Markus



More information about the Python-list mailing list