[issue41757] weakmethod's ref is deleted before weakref's garbage-collect callback is executed

Pablo Galindo Salgado report at bugs.python.org
Mon Sep 14 02:45:56 EDT 2020


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

Hi Giordon and thanks for your issue.

Could you please check if you can reproduce this behaviour with Python3.8 and with the current master? We have some new
code that may be preventing this to happen:

https://github.com/python/cpython/blob/master/Modules/gcmodule.c#L780

Unfortunately, without a simpler reproducer is difficult to tell what's going on so is not possible for me to say
that this is fixed in current master.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41757>
_______________________________________


More information about the Python-bugs-list mailing list