lplatypus added the comment:

I think the fix for this is simply a matter of using Py_INCREF/Py_DECREF around 
usage of the referent.  This should only be necessary for nontrivial usages 
where the GIL might be released.  Here is a patch.

----------
keywords: +patch
Added file: http://bugs.python.org/file41195/issue25769-weakref.patch

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

Reply via email to