[issue33677] Fix signatures of tp_clear handlers
Serhiy Storchaka
report at bugs.python.org
Tue May 29 03:06:44 EDT 2018
New submission from Serhiy Storchaka <storchaka+cpython at 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 <report at bugs.python.org>
<https://bugs.python.org/issue33677>
_______________________________________
More information about the Python-bugs-list
mailing list