This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Stefan Pochmann
Recipients Stefan Pochmann, docs@python
Date 2021-11-08.16:53:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636390392.43.0.38708438512.issue45752@roundup.psfhosted.org>
In-reply-to
Content
The doc https://docs.python.org/3/library/copy.html says:

"This module does not copy types like module, method, stack trace, stack frame, file, socket, window, array, or any similar types."

But it does copy arrays just fine:

import copy, array
a = array.array('i', [1, 2])
b = copy.copy(a)
a[0] = 3
print(a)
print(b)

Output:

array('i', [3, 2])
array('i', [1, 2])
History
Date User Action Args
2021-11-08 16:53:12Stefan Pochmannsetrecipients: + Stefan Pochmann, docs@python
2021-11-08 16:53:12Stefan Pochmannsetmessageid: <1636390392.43.0.38708438512.issue45752@roundup.psfhosted.org>
2021-11-08 16:53:12Stefan Pochmannlinkissue45752 messages
2021-11-08 16:53:12Stefan Pochmanncreate