deepcopy alternative?

none "trades\" at (none)
Tue Jan 30 08:56:41 EST 2007

Szabolcs Nagy wrote:
>> I believe the only thing stopping me from doing a deepcopy is the
>> function references, but I'm not sure.  If so is there any way to
>> transform a string into a function reference(w/o eval or exec)?
> what's your python version?
> for me deepcopy(lambda:1) does not work in py2.4 but it works in py2.5
> (in py2.4 i tried to override __deepcopy__ but it had no effect)

Thanks that fixed the problem real quick :)

Jack Trades

More information about the Python-list mailing list