[IronPython] Possible WeakReference leak in Ipy 2.6.1

Idan Zaltzberg idan at cloudshare.com
Wed Oct 13 15:48:10 CEST 2010

When definnning classes in a method that are subcallses, like:

def d():

                class A(BaseType): pass


The new generated types is appended to the _subtypes weak reference list on

Looks like this list is only cleaned when RemoveSubType Is called, which
might never happen if I understand correctly.

Seems to me there should be a cleanup mechanism similar to WeakDictionary,
so the list can't grow to infinity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20101013/8e461859/attachment.html>

More information about the Ironpython-users mailing list