Ned Deily added the comment:

This is a documented behavior difference in itertools.imap:

"If function is set to None, then imap() returns the arguments as a tuple. Like 
map() but stops when the shortest iterable is exhausted instead of filling in 
None for shorter iterables. The reason for the difference is that infinite 
iterator arguments are typically an error for map() (because the output is 
fully evaluated) but represent a common and useful way of supplying arguments 
to imap()." 

https://docs.python.org/2/library/itertools.html#itertools.imap

----------
nosy: +ned.deily
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24446>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to