Serhiy Storchaka <[email protected]> added the comment:
The simplest reproducer:
import gc, sys
for i in range(100):
class A:
pass
del A
c = gc.collect()
del c
print(sys.gettotalrefcount())
----------
nosy: +pitrou, vstinner
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34042>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com