]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30248: Convert boolean arguments only once in _json. (#1423)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 28 May 2017 12:31:49 +0000 (15:31 +0300)
committerGitHub <noreply@github.com>
Sun, 28 May 2017 12:31:49 +0000 (15:31 +0300)
commitac5bbd43bc7b769c13ae0412cb28a3521f4d4ff1
tree7f75690d054fb8619b9ac33ad7dcae989617c4fd
parent4a8bcdf79cdb3684743fe1268de62ee88bada439
bpo-30248: Convert boolean arguments only once in _json. (#1423)

Rather than saving the Python object and calling PyObject_IsTrue()
every time when the boolean argument is used, call it only once and
save C boolean value.
Modules/_json.c