News for hackers. Stuff that matters.
Re:Python 3 can revive Python by darkseas on Monday May 26, 2014 @09:26PM (#7802408)
I use

    map(print, list_of_tuples)
quite a bit, but that possibly an artifact of my print-based debugging. I can only do this with print as a function rather than a statement, and the single line makes it easy to drop in or comment out as needed.
Re:Python 3 can revive Python by the_mitsuhiko on Monday May 26, 2014 @10:01PM (#7802498)
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.
Re:Python 3 can revive Python by darkseas on Monday May 26, 2014 @11:03PM (#7802648)
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.

Re:Python 3 can revive Python by mborch on Tuesday May 27, 2014 @12:41AM (#7802893)

    >>> from pprint import pprint; pprint(list_of_tuples)
Re:Python 3 can revive Python by njharman on Monday May 26, 2014 @09:47PM (#7802466)
Print '\n'.join(str(x) for x in list_of_tuples)

Not as nice, but doable.