[Python-ideas] Make print() not append line break by default

anatoly techtonik techtonik at gmail.com
Sun Jan 19 10:16:59 CET 2014


On Sun, Jan 19, 2014 at 11:47 AM,  <musicdenotation at gmail.com> wrote:
> And add println()

Python 2:

  def echo(msg, lineend=''):
     import sys
     sys.stdout.write(msg + lineend)

It is better than having dozen of print functions in documentation
that make this documentation unreadable.
--
anatoly t.


More information about the Python-ideas mailing list