summaryrefslogtreecommitdiffstats
path: root/pyconfig.h.in
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-05-25 12:21:36 (GMT)
committerGitHub <noreply@github.com>2022-05-25 12:21:36 (GMT)
commit71d8775feeb647ae5003cfd466de7b58cd1bf269 (patch)
treef20e104788f22dbc11c4366dce18fc74266294a8 /pyconfig.h.in
parent9485a0dbddcee014821b41c960133632bb68b33c (diff)
downloadcpython-71d8775feeb647ae5003cfd466de7b58cd1bf269.zip
cpython-71d8775feeb647ae5003cfd466de7b58cd1bf269.tar.gz
cpython-71d8775feeb647ae5003cfd466de7b58cd1bf269.tar.bz2
gh-93202: Always use %zd printf formatter (#93201)
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.
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r--pyconfig.h.in3
1 files changed, 0 insertions, 3 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 383fd47..b244ed2 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -1506,9 +1506,6 @@
/* Define if you want to coerce the C locale to a UTF-8 based locale */
#undef PY_COERCE_C_LOCALE
-/* Define to printf format modifier for Py_ssize_t */
-#undef PY_FORMAT_SIZE_T
-
/* Define to 1 to build the sqlite module with loadable extensions support. */
#undef PY_SQLITE_ENABLE_LOAD_EXTENSION