@@ -726,18 +726,6 @@ Glossary
726
726
thread removes *key * from *mapping * after the test, but before the lookup.
727
727
This issue can be solved with locks or by using the EAFP approach.
728
728
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
-
741
729
list
742
730
A built-in Python :term: `sequence `. Despite its name it is more akin
743
731
to an array in other languages than to a linked list since access to
@@ -757,6 +745,18 @@ Glossary
757
745
:term: `finder `. See :pep: `302 ` for details and
758
746
:class: `importlib.abc.Loader ` for an :term: `abstract base class `.
759
747
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
+
760
760
magic method
761
761
.. index :: pair: magic; method
762
762
0 commit comments