Hacker News new | ask | show | jobs
by the_mitsuhiko 4401 days 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.
1 comments

Ah, 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.