Closed
Description
Python does not finalizes iterators of some types at exit leading to memory leak.
Reproducer:
a = type(iter(tuple[int]))
print(a.mro())
Leak:
[<class 'generic_alias_iterator'>, <class 'object'>]
[119 refs, 46 blocks]
See also #90575