[issue36203] PyWeakref_NewRef docs are misleading

Windson Yang report at bugs.python.org
Thu Mar 7 03:20:45 EST 2019


Windson Yang <wiwindson at outlook.com> added the comment:

It looks to me the fix is easy, we just will return NULL and raise TypeError when the callback is not callable, None, or NULL. I'm not an expert in C, but I would love to create a PR for it if you don't have time.

----------

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


More information about the Python-bugs-list mailing list