mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issues 2186 and 2187. Move map() from itertools to builtins.
This commit is contained in:
parent
17301e9fab
commit
a6c6037f88
8 changed files with 158 additions and 203 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue