From 801f0d78b5582a325d489831b991adb873067e80 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 24 Aug 2006 19:48:10 +0000 Subject: 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. --- Lib/test/test_tuple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_tuple.py') diff --git a/Lib/test/test_tuple.py b/Lib/test/test_tuple.py index dddb03ecc7..96eb6e76eb 100644 --- a/Lib/test/test_tuple.py +++ b/Lib/test/test_tuple.py @@ -61,7 +61,7 @@ class TupleTest(seq_tests.CommonTest): base = range(N) xp = [(i, j) for i in base for j in base] inps = base + [(i, j) for i in base for j in xp] + \ - [(i, j) for i in xp for j in base] + xp + zip(base) + [(i, j) for i in xp for j in base] + xp + list(zip(base)) collisions = len(inps) - len(set(map(hash, inps))) self.assert_(collisions <= 15) -- cgit v1.2.1