2 ms·
map(print, list_of_tuples) does not work on Python 3 unless you wrap it in list(). In any case it's a anti-idiom because it creates a useless list. Please don
by the_mitsuhiko 12y ago
map(print, list_of_tuples) does not work on Python 3 unless you wrap it in list(). In any case it's a anti-idiom because it creates a useless list. Please don't do that.
- darkseas 12y agoAh, I can see now that `map` will return a list of Nones, and also that Py3 `map` returns a lazy iterator. Thanks. Seeing how my transition to Py3 got hung up on sending bytes in and out of ZeroMQ sockets, I might stop that now. Back to the for loop or join the strings as suggested below.