add gc support to slice (closes #26659) · pythoncapi/cpython@2b601d3 · GitHub
Skip to content

Commit 2b601d3

Browse files
committed
add gc support to slice (closes python#26659)
1 parent a07ab29 commit 2b601d3

3 files changed

Lines changed: 31 additions & 7 deletions

File tree

Lib/test/test_slice.py

Lines changed: 14 additions & 3 deletions

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Release date: tba
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #26659: Make the builtin slice type support cycle collection.
14+
1315
- Issue #26718: super.__init__ no longer leaks memory if called multiple times.
1416
NOTE: A direct call of super.__init__ is not endorsed!
1517

Objects/sliceobject.c

Lines changed: 15 additions & 4 deletions

0 commit comments

Comments
 (0)