[issue10304] error in tutorial triple-string example

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: 1. I decided to add '\' since this is what I normally do and also add one sentence explanation. 2. I changed ending from ' ' to ','. Uploaded patch committed in rev86422, rev86423 -- keywords: +patch resolution: -> fixed stage: needs patch -> commit

[issue10304] error in tutorial triple-string example

2010-11-06 Thread Malte Helmert
Malte Helmert added the comment: I see. (The tutorial really talks about the interactive interpreter though -- I don't think IDLE has been mentioned yet.) -- ___ Python tracker ___

[issue10304] error in tutorial triple-string example

2010-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should have said that IDLE puts >>> on a new line. -- ___ Python tracker ___ ___ Python-bugs-list

[issue10304] error in tutorial triple-string example

2010-11-05 Thread R. David Murray
R. David Murray added the comment: I think the commit hook might object to the trailing blank (I'm not sure it applies to rst files, but I think it does). -- nosy: +r.david.murray ___ Python tracker _

[issue10304] error in tutorial triple-string example

2010-11-05 Thread Malte Helmert
Malte Helmert 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). > print("""\ I think that would be didactically bad after just mentioning that newlines in triple-quoted strings

[issue10304] error in tutorial triple-string example

2010-11-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10304] error in tutorial triple-string example

2010-11-05 Thread Terry J. Reedy
Terry J. Reedy 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). print("""\ 2. It is rather difficult to see that there is no blank at the end (highlight with mouse). I can imagin

[issue10304] error in tutorial triple-string example

2010-11-03 Thread Malte Helmert
Malte Helmert added the comment: Here's a related one if you want to get the sample output really 100% correct. In the last example of Section 3, the output in {>>> a, b = 0, 1 >>> while b < 1000: ... print(b, end=' ') ... a, b = b, a+b ... 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 98

[issue10304] error in tutorial triple-string example

2010-11-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10304] error in tutorial triple-string example

2010-11-03 Thread Malte Helmert
New submission from Malte Helmert : >From Section 3.1.2 of the tutorial: print(""" Usage: thingy [OPTIONS] -hDisplay this usage message -H hostname Hostname to connect to """) produces the following output: _