Windson Yang <wiwind...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue36203>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to