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

Skip to content

Fix sort order for "locale encoding" glossary item #115794

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

Merged
merged 2 commits into from
Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -727,18 +727,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
Expand All @@ -758,6 +746,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

Expand Down