Is there a good reason why we cannot (as of 2.1.1) deepcopy complex objects?

Duncan Booth duncan at NOSPAMrcp.co.uk
Wed Mar 13 04:50:25 EST 2002


Tim Peters <tim.one at comcast.net> wrote in 
news:mailman.1015995502.4050.python-list at python.org:

> [Carl Banks]
>> Subject: Is there a good reason why we cannot (as of 2.1.1) deepcopy
>> complex objects?
> 
> I doubt it.  Works fine in 2.2:

Although you could perhaps have mentioned that deepcopy of a complex number 
does not in fact copy it (it returns the original number). This is of 
course correct behaviour for immutable objects.

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?



More information about the Python-list mailing list