[issue36032] Wrong output in tutorial (3.1.2. Strings)

2019-02-19 Thread INADA Naoki
INADA Naoki added the comment: Uh! You meant Python 2.7!! It doesn't make sense to improve Python 2.7 tutorial. If you're reading Python 2 tutorial, please read 3.7 tutorial instead!!! -- ___ Python tracker ___

[issue36032] Wrong output in tutorial (3.1.2. Strings)

2019-02-19 Thread INADA Naoki
INADA Naoki added the comment: @Amit Please confirm docs.python.org before submitting issue. #33460 fixed it already. -- nosy: +inada.naoki ___ Python tracker ___

[issue36032] Wrong output in tutorial (3.1.2. Strings)

2019-02-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: and when you execute the examples, the REPL does not generate the triple points. For me, the examples of the tuto are correct and we don't need to add '...' in the examples. -- ___ Python tracker

[issue36032] Wrong output in tutorial (3.1.2. Strings)

2019-02-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @serhiy I think Amit wants to say there is no triple point in these examples of the tutorial. -- nosy: +matrixise ___ Python tracker ___ __

[issue36032] Wrong output in tutorial (3.1.2. Strings)

2019-02-19 Thread Amit Amely
Amit Amely added the comment: But it also contains an error message part which has nothing to do with this example (marked in dark green) This only works with two literals though, not with variables or expressions: >>> prefix = 'Py'>>> prefix 'thon' # can't concatenate a variable and a strin

[issue36032] Wrong output in tutorial (3.1.2. Strings)

2019-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The output in tutorial is correct. "..." means omitted output (we don't want to clutter examples with insignificant details). -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed __

[issue36032] Wrong output in tutorial (3.1.2. Strings)

2019-02-19 Thread Amit Amely
New submission from Amit Amely : This is the tutorial text: >>> prefix = 'Py' >>> prefix 'thon' # can't concatenate a variable and a string literal ... SyntaxError: invalid syntax >>> ('un' * 3) 'ium' ... SyntaxError: invalid syntax This is the actual result: >>> prefix = 'Py' >>> prefix