SIGN IN SIGN UP

bpo-42536: GC track recycled tuples (GH-23623)

Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector:

- collections.OrderedDict.items
- dict.items
- enumerate
- functools.reduce
- itertools.combinations
- itertools.combinations_with_replacement
- itertools.permutations
- itertools.product
- itertools.zip_longest
- zip

Previously, they could have become untracked by a prior garbage collection.
B
Brandt Bucher committed
226a012d1cd61f42ecd3056c554922f359a1a35d
Parent: 2de5097
Committed by GitHub <noreply@github.com> on 12/5/2020, 3:45:57 AM