[issue15528] Better support for finalization with weakrefs
Łukasz Langa
report at bugs.python.org
Sat Jun 8 11:46:05 CEST 2013
Łukasz Langa added the comment:
Your patch leaks references with subinterpreters, which was exposed by functools.singledispatch using weakref. While the actual bug is in atexit (which doesn't properly unregister on subinterpreter termination), now all uses of weakref leak.
Context: http://mail.python.org/pipermail/python-dev/2013-June/126755.html
PJE suggests importing atexit and registering finalize only when it's actually used. I guess this would be the easiest workaround.
----------
assignee: -> sbt
nosy: +lukasz.langa
resolution: fixed ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15528>
_______________________________________
More information about the Python-bugs-list
mailing list