flox <la...@yahoo.fr> added the comment:

I would think to use weak references in order to prevent such leaks.

With the patch attached, if the handler is not referenced anywhere, it
is closed.
However named handlers are not closed (because of hard reference in
_handlers dictionary).

----------
nosy: +flox
Added file: http://bugs.python.org/file15395/issue6615_weakref.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6615>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to