Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-93202: Always use %zd printf formatter #93201

Merged
merged 1 commit into from May 25, 2022
Merged

Commits on May 25, 2022

  1. gh-93202: Always use %zd printf formatter

    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 committed May 25, 2022