Issue #21321: itertools.islice() now releases the reference to the source iterator when the slice is exhausted.

Patch by Anton Afanasyev.
This commit is contained in:
Antoine Pitrou 2014-04-29 12:13:46 +02:00
parent 9cc9026294
commit 26f82efe59
4 changed files with 37 additions and 5 deletions

View file

@ -17,6 +17,7 @@ Rajiv Abraham
David Abrahams
Marc Abramowitz
Ron Adam
Anton Afanasyev
Ali Afshar
Nitika Agarwal
Jim Ahlstrom

View file

@ -39,6 +39,9 @@ Core and Builtins
Library
-------
- Issue #21321: itertools.islice() now releases the reference to the source
iterator when the slice is exhausted. Patch by Anton Afanasyev.
- Issue #9815: assertRaises now tries to clear references to local variables
in the exception's traceback.