Skip to content

Commit 7d44654

Browse files
Fix sort order for "locale encoding" glossary item (#115794)
Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent 63289b9 commit 7d44654

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Doc/glossary.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -727,18 +727,6 @@ Glossary
727727
thread removes *key* from *mapping* after the test, but before the lookup.
728728
This issue can be solved with locks or by using the EAFP approach.
729729

730-
locale encoding
731-
On Unix, it is the encoding of the LC_CTYPE locale. It can be set with
732-
:func:`locale.setlocale(locale.LC_CTYPE, new_locale) <locale.setlocale>`.
733-
734-
On Windows, it is the ANSI code page (ex: ``"cp1252"``).
735-
736-
On Android and VxWorks, Python uses ``"utf-8"`` as the locale encoding.
737-
738-
``locale.getencoding()`` can be used to get the locale encoding.
739-
740-
See also the :term:`filesystem encoding and error handler`.
741-
742730
list
743731
A built-in Python :term:`sequence`. Despite its name it is more akin
744732
to an array in other languages than to a linked list since access to
@@ -758,6 +746,18 @@ Glossary
758746
:term:`finder`. See :pep:`302` for details and
759747
:class:`importlib.abc.Loader` for an :term:`abstract base class`.
760748

749+
locale encoding
750+
On Unix, it is the encoding of the LC_CTYPE locale. It can be set with
751+
:func:`locale.setlocale(locale.LC_CTYPE, new_locale) <locale.setlocale>`.
752+
753+
On Windows, it is the ANSI code page (ex: ``"cp1252"``).
754+
755+
On Android and VxWorks, Python uses ``"utf-8"`` as the locale encoding.
756+
757+
:func:`locale.getencoding` can be used to get the locale encoding.
758+
759+
See also the :term:`filesystem encoding and error handler`.
760+
761761
magic method
762762
.. index:: pair: magic; method
763763

0 commit comments

Comments
 (0)