Commit 32128ff9 authored by Armin Rigo's avatar Armin Rigo

Show case: reference cycles involving only the ob_type field are rather

uncommon but possible.  Inspired by SF bug 1469629.
parent 3b883459
# Reference cycles involving only the ob_type field are rather uncommon
# but possible. Inspired by SF bug 1469629.
import gc
def leak():
class T(type):
pass
class U(type):
__metaclass__ = T
U.__class__ = U
del U
gc.collect(); gc.collect(); gc.collect()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment