[issue13525] Tutorial: Example of Source Code Encoding triggers error

2018-05-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6, Python 3.7, Python 3.8 -Python 3.2, Python 3.3 ___ Python tracker ___

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2018-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d7e783b17feaedbe0f5b30467cb7f43cefadf904 by Serhiy Storchaka in branch '2.7': [2.7] bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738). (GH-6744) https://github.com/python/cpython/commit/d7e783b17feaedbe0f5b30467cb7f43ce

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2018-05-09 Thread miss-islington
miss-islington added the comment: New changeset fa40fc0593012893e447875632e9ed3df277561f by Miss Islington (bot) in branch '3.6': bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738) https://github.com/python/cpython/commit/fa40fc0593012893e447875632e9ed3df277561f --

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2018-05-09 Thread miss-islington
miss-islington added the comment: New changeset 834ea12ca6478d73a337ce52f33660f6f174 by Miss Islington (bot) in branch '3.7': bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738) https://github.com/python/cpython/commit/834ea12ca6478d73a337ce52f33660f6f174 --

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2018-05-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6431 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2018-05-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +6430 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2018-05-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +6429 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2018-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ddb6215a55b0218b621d5cb755e9dfac8dab231a by Serhiy Storchaka in branch 'master': bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738) https://github.com/python/cpython/commit/ddb6215a55b0218b621d5cb755e9dfac8dab231a -

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2018-05-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6427 stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2018-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Error message was fixed. In all supported versions it is: $ ./python cp_1252broken.py File "cp_1252broken.py", line 1 SyntaxError: encoding problem: cp-1252 But the tutorial still contains non-working example. This is an easy issue, but it was open for lo

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2012-07-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2011-12-10 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the detailed bug report. I thought the normalization performed by the codec lookup system would convert 'cp-1252' to 'cp1252' (its “real” name, i.e. the name of the module implementing the codec), but it does not. I’m +1 to removing the hyphen in th

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2011-12-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___ P

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2011-12-03 Thread Nicolas Goutte
Changes by Nicolas Goutte : Added file: http://bugs.python.org/file23841/windows_1252ok.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2011-12-03 Thread Nicolas Goutte
New submission from Nicolas Goutte : Current Behaviour The tutorial of Python 3.2.x has an example to set an encoding in a source file: http://docs.python.org/py3k/tutorial/interpreter.html#source-code-encoding It explains to set the following line at the start of the source code: # -*- coding