diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-03-20 22:08:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 21:08:18 +0000 |
commit | 2f1806ed8abca9d12dcd4c57f24fe596f59773cf (patch) | |
tree | 0b1e12e5c638560c7b7a65475a79b5632ce9236d | |
parent | 23a1c9f422ad6952186f266ebf325abffcb33892 (diff) | |
download | cpython3-2f1806ed8abca9d12dcd4c57f24fe596f59773cf.tar.gz |
[3.11] Fix sort order for "locale encoding" glossary item (GH-115794) (#117103)
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
-rw-r--r-- | Doc/glossary.rst | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 3943bb6a13..dadfb62a14 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -726,18 +726,6 @@ Glossary thread removes *key* from *mapping* after the test, but before the lookup. This issue can be solved with locks or by using the EAFP approach. - locale encoding - On Unix, it is the encoding of the LC_CTYPE locale. It can be set with - :func:`locale.setlocale(locale.LC_CTYPE, new_locale) <locale.setlocale>`. - - On Windows, it is the ANSI code page (ex: ``"cp1252"``). - - On Android and VxWorks, Python uses ``"utf-8"`` as the locale encoding. - - ``locale.getencoding()`` can be used to get the locale encoding. - - See also the :term:`filesystem encoding and error handler`. - list A built-in Python :term:`sequence`. Despite its name it is more akin to an array in other languages than to a linked list since access to @@ -757,6 +745,18 @@ Glossary :term:`finder`. See :pep:`302` for details and :class:`importlib.abc.Loader` for an :term:`abstract base class`. + locale encoding + On Unix, it is the encoding of the LC_CTYPE locale. It can be set with + :func:`locale.setlocale(locale.LC_CTYPE, new_locale) <locale.setlocale>`. + + On Windows, it is the ANSI code page (ex: ``"cp1252"``). + + On Android and VxWorks, Python uses ``"utf-8"`` as the locale encoding. + + :func:`locale.getencoding` can be used to get the locale encoding. + + See also the :term:`filesystem encoding and error handler`. + magic method .. index:: pair: magic; method |