Skip to content

Commit 0387c12

Browse files
committed
Adding the bases tuple as discussed
Signed-off-by: Matthew A Johnson <matjoh@microsoft.com>
1 parent 4866d04 commit 0387c12

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Python/immutability.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,13 @@ int _PyImmutability_Freeze(PyObject* obj)
559559
{
560560
goto error;
561561
}
562+
563+
// We need to freeze the tuple object, even though the types
564+
// within will have been frozen already.
565+
if(push(frontier, type->tp_bases))
566+
{
567+
goto error;
568+
}
562569
}
563570
}
564571
else

0 commit comments

Comments
 (0)