Issue #21321: itertools.islice() now releases the reference to the source iterator when the slice is exhausted.
Patch by Anton Afanasyev.
A
Antoine Pitrou committed
26f82efe591a997bcf62111d1776c296f8088623
Parent: 9cc9026
Patch by Anton Afanasyev.