Back to index

python3.2  3.2.2
Functions
test.leakers.test_selftype Namespace Reference

Functions

def leak

Function Documentation

Definition at line 6 of file test_selftype.py.

00006 
00007 def leak():
00008     class T(type):
00009         pass
00010     class U(type, metaclass=T):
00011         pass
00012     U.__class__ = U
00013     del U
00014     gc.collect(); gc.collect(); gc.collect()