[Python-Dev] Replacement for print in Python 3.0 (original) (raw)

skip@pobox.com skip at pobox.com
Fri Sep 2 16:53:31 CEST 2005


Steven>     print 'foo:', foo, 'bar:', bar, 'baz:', baz,
Steven>     print 'frobble', frobble

Steven> In my proposed function:

Steven>     print('foo:', foo, 'bar:', bar, 'baz:', baz,
Steven>           'frobble', frobble)

Steven> To my (admittedly biased) eyes, the second version more
Steven> obviously prints to a single line.

Yes, you're right. My bad.

So, is the proposal that you would need an explicit "\n" to terminate the output or not?

Skip



More information about the Python-Dev mailing list