[New-bugs-announce] [issue37194] Move new vector headers to the internal C API

STINNER Victor report at bugs.python.org
Fri Jun 7 07:54:00 EDT 2019


New submission from STINNER Victor <vstinner at redhat.com>:

bpo-37191: the new vector APIs declare "static inline" functions which are no C89 compatible and so cause compilation issues on pygobject3, python-dbus, xen (for example).

I propose to move the new *private* declarations to the internal C API.

I started to work on an application. The blocker issue is _PyObject_CallNoArg() which is now commonly used in CPython code base for best performances. It is used the _testcapi which must *not* be compiled with the internal C API.

So I suggest to first add a new public PyObject_CallNoArg() function. It would be different than _PyObject_CallNoArg() static inline function: PyObject_CallNoArg() would be a regular function and so fit better with ABI issues.

----------
components: Interpreter Core
messages: 344927
nosy: vstinner
priority: normal
severity: normal
status: open
title: Move new vector headers to the internal C API
versions: Python 3.8, Python 3.9

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


More information about the New-bugs-announce mailing list