Files
dicom2pacs/build/bdist.macosx-15.0-arm64/python3.13-standalone/app/collect/test/crashers/underlying_dict.py
René Mathieu 0fef8d96c5 Initial commit
2026-01-17 13:49:51 +01:00

21 lines
282 B
Python
Executable File

import gc
thingy = object()
class A(object):
def f(self):
return 1
x = thingy
r = gc.get_referrers(thingy)
if "__module__" in r[0]:
dct = r[0]
else:
dct = r[1]
a = A()
for i in range(10):
a.f()
dct["f"] = lambda self: 2
print(a.f()) # should print 1