Erlend E. Aasland <erlend.aasl...@innova.no> added the comment:

I did some experiments using the connection object as a "backref" in the 
callback context, but it seems that the GC does not play well with such ref 
circles; I ended up with a lot of ref leaks (yes, I modified the traverse and 
clear slots to visit and clear the backref).

Using the module object as a "backref", however, worked swell. It ends up being 
a much larger PR, though.

----------

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

Reply via email to