-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
gh-107583: Update Doc/howto/unicode.rst #109501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| EuroPython 2002. The slides are an excellent overview of the design of Python | ||
| 2's Unicode features (where the Unicode string type is called ``unicode`` and | ||
| literals start with ``u``). | ||
| literals start with ``u``). (Notice: Python 2 is no longer supported, just keep it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better: (Note: Python 2 is no longer supported. We just keep this reference for historic reasons.)
|
|
||
| If you don't include such a comment, the default encoding used will be UTF-8 as | ||
| already mentioned. See also :pep:`263` for more information. | ||
| already mentioned. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the reference to PEP 263, since this explains how it all works.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
| they have no significance to Python but are a convention. Python looks for | ||
| ``coding: name`` or ``coding=name`` in the comment. | ||
| Python looks for patterns such like ``coding: latin-1``, ``coding=latin-1`` or | ||
| ``-*- coding: latin-1 -*-`` in the comment. See :ref:`encodings` for detailed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ``-*- coding: latin-1 -*-`` in the comment. See :ref:`encodings` for detailed | |
| ``-*- coding: latin-1 -*-`` in the comment. See :ref:`encodings` for a detailed |
Grammar nit
| literals start with ``u``). (Notice: Python 2 is no longer supported, just keep it | ||
| here for historical interest.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| literals start with ``u``). (Notice: Python 2 is no longer supported, just keep it | |
| here for historical interest.) | |
| literals start with ``u``). (Note: Python 2 is no longer supported. | |
| This reference is preserved for historic reasons.) |
A slightly different suggestion to the above.
📚 Documentation preview 📚: https://cpython-previews--109501.org.readthedocs.build/