commit | df108dc6610e41c54ed064a854e3903c143f0d77 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@redhat.com> | Mon Nov 26 13:37:13 2018 +0100 |
committer | GitHub <noreply@github.com> | Mon Nov 26 13:37:13 2018 +0100 |
tree | ba33524ff177a6533290f79be66523b02a6dcd3b | |
parent | c2e1607a51d7a17f143b5a34e8cff7c6fc58a091 [diff] |
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.