itertools.imap() is in Python 2, but not in Python 3.
Actually, that function was moved to just the map function in Python 3 and if you want to use the old Python 2 map, you must use list(map()).
itertools.imap() is in Python 2, but not in Python 3.
Actually, that function was moved to just the map function in Python 3 and if you want to use the old Python 2 map, you must use list(map()).