[issue9616] copy.deepcopy() copying pointers from a dict/dict/list, should copy values

Martin v. Löwis report at bugs.python.org
Sun Aug 15 22:51:03 CEST 2010


Martin v. Löwis <martin at v.loewis.de> added the comment:

Numbers are immutable, and hence don't need to be copied. In fact, it is impossible to create two int object that both have the value 4, but are different objects:

py> 2+2 is 3+1
True

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9616>
_______________________________________


More information about the Python-bugs-list mailing list