[New-bugs-announce] [issue37191] Python.h contains intermingled declarations

Petr Viktorin report at bugs.python.org
Fri Jun 7 05:13:57 EDT 2019


New submission from Petr Viktorin <encukou at gmail.com>:

When compiled with GCC's -Werror=declaration-after-statement ("intermingled declarations" in PEP7), cpython/abstract.h (included from <Python.h>) errors on vectorcall helper functions added in 3.8.0 Beta 1.

It's well within our rights to ignore this: since 3.6 we require intermingled declarations.
But, when re-compiling Fedora we've seen several projects fail with this warning (so far: pygobject3, python-dbus, xen; more will likely come).

Dear Release Manager, should we patch 3.8 to avoid this? The patch is simple, and it would give projects that we(re) dutifully tested with the Alphas one more release to adapt.

I don't think it's worth changing for 3.9 (but if we do we should test it).

----------
messages: 344912
nosy: lukasz.langa, petr.viktorin
priority: normal
severity: normal
status: open
title: Python.h contains intermingled declarations
versions: Python 3.8

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


More information about the New-bugs-announce mailing list