[New-bugs-announce] [issue32963] Python 2.7 tutorial claims source code is UTF-8 encoded

Martijn Pieters report at bugs.python.org
Tue Feb 27 04:04:23 EST 2018


New submission from Martijn Pieters <mj at python.org>:

Issue #29381 updated the tutorial to clarify #! use, but the 2.7 patch re-used Python 3 material that doesn't apply. See r40ba60f6 at https://github.com/python/cpython/commit/40ba60f6bf2f7192f86da395c71348d0fa24da09

It now reads:

"By default, Python source files are treated as encoded in UTF-8."

and

" To display all these characters properly, your editor must recognize that the file is UTF-8, and it must use a font that supports all the characters in the file."

This is a huge deviation from the previous text, and confusing and wrong to people new to Python 2.

----------
assignee: docs at python
components: Documentation
messages: 312986
nosy: docs at python, mjpieters
priority: normal
severity: normal
status: open
title: Python 2.7 tutorial claims source code is UTF-8 encoded
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32963>
_______________________________________


More information about the New-bugs-announce mailing list