Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Objects/tupleobject.c
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
efimov-mikhail and vstinner authored Oct 16, 2025
commit a679b508c73b944525c57b8b2043876e516a70cf
4 changes: 2 additions & 2 deletions Objects/tupleobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ _PyTuple_MaybeUntrack(PyObject *op)
static bool
Comment thread
efimov-mikhail marked this conversation as resolved.
tuple_need_tracking(PyTupleObject *t)
Comment thread
efimov-mikhail marked this conversation as resolved.
Outdated
Comment thread
efimov-mikhail marked this conversation as resolved.
Outdated
{
Py_ssize_t i = 0, n = Py_SIZE(t);
for (; i < n; i++) {
Py_ssize_t n = PyTuple_GET_SIZE(t);
for (Py_ssize_t i = 0; i < n; i++) {
PyObject *elt = PyTuple_GET_ITEM(t, i);
Comment thread
efimov-mikhail marked this conversation as resolved.
Outdated
/* Tuple with NULL elements aren't
fully constructed, we should track them. */
Expand Down