[New-bugs-announce] [issue10732] Wrong destructor function type in Python/getargs.c

Antoine Pitrou report at bugs.python.org
Sat Dec 18 20:11:49 CET 2010


New submission from Antoine Pitrou <pitrou at free.fr>:

In getargs.c, in addcleanup_convert(), PyCapsule_SetContext() is called with a second argument "int (*destr)(PyObject*,void*)", but it really expects a "void (*PyCapsule_Destructor)(PyObject *)".
I'm not sure it's a good idea, although the ABI may be lenient enough on common architectures (?)...

----------
components: Interpreter Core
messages: 124307
nosy: haypo, loewis, pitrou
priority: normal
severity: normal
status: open
title: Wrong destructor function type in Python/getargs.c
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10732>
_______________________________________


More information about the New-bugs-announce mailing list