Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cef6d5 commit 8b9def3Copy full SHA for 8b9def3
1 file changed
Lib/copy.py
@@ -96,6 +96,10 @@ def _copy_atomic(x):
96
d[types.IntType] = _copy_atomic
97
d[types.LongType] = _copy_atomic
98
d[types.FloatType] = _copy_atomic
99
+try:
100
+ d[types.ComplexType] = _copy_atomic
101
+except AttributeError:
102
+ pass
103
d[types.StringType] = _copy_atomic
104
try:
105
d[types.UnicodeType] = _copy_atomic
@@ -184,6 +188,10 @@ def _deepcopy_atomic(x, memo):
184
188
d[types.IntType] = _deepcopy_atomic
185
189
d[types.LongType] = _deepcopy_atomic
186
190
d[types.FloatType] = _deepcopy_atomic
191
192
+ d[types.ComplexType] = _deepcopy_atomic
193
194
187
195
d[types.StringType] = _deepcopy_atomic
196
197
d[types.UnicodeType] = _deepcopy_atomic
0 commit comments