Author terry.reedy
Recipients docs@python, ezio.melotti, maltehelmert, terry.reedy
Date 2010-11-05.22:28:55
SpamBayes Score 1.4613e-07
Marked as misclassified No
Message-id <1288996137.4.0.0926914706198.issue10304@psf.upfronthosting.co.za>
In-reply-to
Content
1. Rather than add a blank line to the output, the input should have the newline suppressed with \ (which has been done in previous examples).
  print("""\

2. It is rather difficult to see that there is no blank at the end (highlight with mouse). I can imagine that either the formatter or display system might delete even if in the master .rst file. In interactive use, the interpreter will go to a new line anyway before printing the >>> prompt.

The intent and effect of end=' ' is that the outputs are all on one line (as with 2.x print) instead of each on a separate line
History
Date User Action Args
2010-11-05 22:28:57terry.reedysetrecipients: + terry.reedy, maltehelmert, ezio.melotti, docs@python
2010-11-05 22:28:57terry.reedysetmessageid: <1288996137.4.0.0926914706198.issue10304@psf.upfronthosting.co.za>
2010-11-05 22:28:56terry.reedylinkissue10304 messages
2010-11-05 22:28:55terry.reedycreate