STINNER Victor <vstin...@python.org> added the comment:

> Currently, C++ code that includes `<Python.h>` is warning-free in GCC (g++) 
> even with `-Wpedantic`. That won't be true after this change, unless 
> Py_LIMITED_API is defined.

By the way, the current trend is to make more and more structures opaque in the 
C API. See for example:

* bpo-39573: Make PyObject an opaque structure in the limited C API
* bpo-39947: Make the PyThreadState structure opaque (move it to the internal C 
API)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40120>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to