[issue10304] error in tutorial triple-string example
Terry J. Reedy
report at bugs.python.org
Fri Nov 5 23:28:57 CET 2010
Terry J. Reedy <tjreedy at udel.edu> added the comment:
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).
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
stage: -> needs patch
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list