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 5625b18 commit f5f296cCopy full SHA for f5f296c
1 file changed
Lib/test/test_copy.py
@@ -73,6 +73,10 @@ class C(object):
73
def __reduce__(self):
74
c.append(1)
75
return ""
76
+ def __getattribute__(self, name):
77
+ if name == "__reduce_ex__":
78
+ raise AttributeError(name)
79
+ return object.__getattribute__(self, name)
80
c = []
81
x = C()
82
y = copy.copy(x)
@@ -342,6 +346,10 @@ class C(object):
342
346
343
347
344
348
349
350
351
352
345
353
354
355
y = copy.deepcopy(x)
0 commit comments