New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:
The tp_clear handler should be a pointer to the function that returns int. typedef int (*inquiry)(PyObject *); Two handlers in the stdlib (for AST and deque objects) return void instead. The following PR fixes this. ---------- components: Extension Modules messages: 317986 nosy: rhettinger, serhiy.storchaka priority: normal severity: normal status: open title: Fix signatures of tp_clear handlers type: behavior versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33677> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com