On Wed, Jun 5, 2013 at 3:20 AM, lukasz.langa <python-checkins@python.org> wrote:
">

(original) (raw)




On Fri, Jun 7, 2013 at 10:27 AM, Thomas Wouters <thomas@python.org> wrote:

On Wed, Jun 5, 2013 at 3:20 AM, lukasz.langa <python-checkins@python.org> wrote:
+from weakref import WeakKeyDictionary

FYI, this change exposes a bug in the atexit module involving subinterpreters, causing the refleaks reported by Antoine's daily report: interpreter startup now always imports weakref, which imports atexit and registers a classmethod. Unfortunately the atexit module doesn't seem to know subinterpreters from subtitles and so doesn't unregister this classmethod when the subinterpreter is terminated.

This isn't a new bug, but it's exposed by always importing weakref and atexit during interpreter startup. I'm wondering if that's really necessary :)

Is there an issue tracking this?

-Brett


--
Thomas Wouters <thomas@python.org>

Hi! I'm an email virus! Think twice before sending your email to help me spread!

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/brett%40python.org