Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f1806e

Browse files
miss-islingtonwillingcCAM-Gerlach
authored
[3.11] Fix sort order for "locale encoding" glossary item (GH-115794) (#117103)
Co-authored-by: Carol Willing <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent 23a1c9f commit 2f1806e

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
@@ -726,18 +726,6 @@ Glossary
726726
thread removes *key* from *mapping* after the test, but before the lookup.
727727
This issue can be solved with locks or by using the EAFP approach.
728728

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

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

0 commit comments

Comments
 (0)