bpo-35961: Fix a crash in slice_richcompare() (GH-11830)
Fix a crash in slice_richcompare(): use strong references rather than stolen references for the two temporary internal tuples. The crash (or assertion error) occurred if a garbage collection occurred during slice_richcompare(), especially while calling PyObject_RichCompare(t1, t2, op).
V
Victor Stinner committed
dcb68f47f74b0cc8a1896d4a4c5a6b83c0bbeeae
Parent: 5680f65
Committed by GitHub <noreply@github.com>
on 2/13/2019, 11:31:56 AM