mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Make built-in zip() equal to itertools.izip().
I mea, *really* equal -- for now, the implementation just imports itertools. :-) The only other changes necessary were various unit tests that were assuming zip() returns a real list. No "real" code made this assumption.
This commit is contained in:
parent
d38abe9484
commit
801f0d78b5
6 changed files with 62 additions and 139 deletions
|
@ -122,7 +122,7 @@ class TestEmpty(EnumerateTestCase):
|
|||
class TestBig(EnumerateTestCase):
|
||||
|
||||
seq = range(10,20000,2)
|
||||
res = zip(range(20000), seq)
|
||||
res = list(zip(range(20000), seq))
|
||||
|
||||
class TestReversed(unittest.TestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue