Python 3.12 now requires a C11 compiler. We don't have to check if the %zd printf format is supported: it's available since C99. Python 3.6 requires a C99 compiler to build.
The PY_FORMAT_SIZE_T macro was already updated to be always defined as "z": commit d765d81.
This issue is a follow-up of the previous issue #81962.
The text was updated successfully, but these errors were encountered:
Python now always use the ``%zu`` and ``%zd`` printf formats to
format a size_t or Py_ssize_t number. Building Python 3.12 requires a
C11 compiler, so these printf formats are now always supported.
* PyObject_Print() and _PyObject_Dump() now use the printf %zd format
to display an object reference count.
* Update PY_FORMAT_SIZE_T comment.
* Remove outdated notes about the %zd format in PyBytes_FromFormat()
and PyUnicode_FromFormat() documentations.
* configure no longer checks for the %zd format and no longer defines
PY_FORMAT_SIZE_T macro in pyconfig.h.
* pymacconfig.h no longer undefines PY_FORMAT_SIZE_T: macOS 10.4 is
no longer supported. Python 3.12 now requires macOS 10.6 (Snow
Leopard) or newer.
vstinner commentedMay 25, 2022
Python 3.12 now requires a C11 compiler. We don't have to check if the
%zd
printf format is supported: it's available since C99. Python 3.6 requires a C99 compiler to build.The PY_FORMAT_SIZE_T macro was already updated to be always defined as "z": commit d765d81.
This issue is a follow-up of the previous issue #81962.
The text was updated successfully, but these errors were encountered: