]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40943: Replace PY_FORMAT_SIZE_T with "z" (GH-20781)
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jun 2020 16:38:05 +0000 (18:38 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2020 16:38:05 +0000 (18:38 +0200)
commitd36cf5f1d20ce9f111a8fc997104785086e8eee6
treef452121f147dece783aa9a278f6ce80b012ca0bd
parent24b8bad6d30ae4fb37ee686a073adfa5308659f9
bpo-40943: Replace PY_FORMAT_SIZE_T with "z" (GH-20781)

The PEP 353, written in 2005, introduced PY_FORMAT_SIZE_T. Python no
longer supports macOS 10.4 and Visual Studio 2010, but requires more
recent macOS and Visual Studio versions. In 2020 with Python 3.10, it
is now safe to use directly "%zu" to format size_t and "%zi" to
format Py_ssize_t.
Include/pyport.h
Modules/_pickle.c
Modules/_sre.c
Modules/gcmodule.c
Modules/sre_lib.h
Objects/bytesobject.c
Objects/object.c
Objects/obmalloc.c
Objects/unicodeobject.c
Python/getargs.c
Python/pyhash.c