mirror of
https://github.com/python/cpython.git
synced 2026-04-14 07:41:00 +00:00
GH-145247: Use _PyTuple_FromPair in Parser and Python (#145842)
Use _PyTuple_FromPair in Parser and Python
This commit is contained in:
parent
f062014d38
commit
d19de375a2
8 changed files with 16 additions and 11 deletions
|
|
@ -3341,7 +3341,7 @@ zip_reduce(PyObject *self, PyObject *Py_UNUSED(ignored))
|
|||
if (lz->strict) {
|
||||
return PyTuple_Pack(3, Py_TYPE(lz), lz->ittuple, Py_True);
|
||||
}
|
||||
return PyTuple_Pack(2, Py_TYPE(lz), lz->ittuple);
|
||||
return _PyTuple_FromPair((PyObject *)Py_TYPE(lz), lz->ittuple);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue