]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add assertion to _PyTuple_CAST(op) (GH-10712)
authorVictor Stinner <vstinner@redhat.com>
Mon, 26 Nov 2018 12:37:13 +0000 (13:37 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Nov 2018 12:37:13 +0000 (13:37 +0100)
commitdf108dc6610e41c54ed064a854e3903c143f0d77
treeba33524ff177a6533290f79be66523b02a6dcd3b
parentc2e1607a51d7a17f143b5a34e8cff7c6fc58a091
Add assertion to _PyTuple_CAST(op) (GH-10712)

Add "assert(PyTuple_Check(op));" to _PyTuple_CAST() to check that the
argument is a tuple object in debug mode.

PyTuple_GET_SIZE() now uses _PyTuple_CAST() to get its assertion.
Include/tupleobject.h