Issues 2186 and 2187. Move map() from itertools to builtins.

This commit is contained in:
Raymond Hettinger 2008-03-13 01:26:19 +00:00
parent 17301e9fab
commit a6c6037f88
8 changed files with 158 additions and 203 deletions

View file

@ -260,10 +260,10 @@ class S:
def __next__(self):
raise StopIteration
from itertools import chain, imap
from itertools import chain, map
def L(seqn):
'Test multiple tiers of iterators'
return chain(imap(lambda x:x, R(Ig(G(seqn)))))
return chain(map(lambda x:x, R(Ig(G(seqn)))))
class TestErrorHandling(unittest.TestCase):
# only for C implementation