diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-10-09 08:42:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-09 08:42:08 (GMT) |
commit | 21c04e1a972bd1b6285e0ea41fa107d635bbe43a (patch) | |
tree | 150fb5cd016501330551298cfa21b9d19b7a5c01 /Doc/library | |
parent | 92760bd85b8f48b88df5b81100a757048979de83 (diff) | |
download | cpython-21c04e1a972bd1b6285e0ea41fa107d635bbe43a.zip cpython-21c04e1a972bd1b6285e0ea41fa107d635bbe43a.tar.gz cpython-21c04e1a972bd1b6285e0ea41fa107d635bbe43a.tar.bz2 |
gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) (GH-124974)
Now it returns a tuple of up to 100 strings (an empty tuple on most locales).
Previously it returned the first item of that tuple or an empty string.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/locale.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/locale.rst b/Doc/library/locale.rst index 04035b3..5f3c484 100644 --- a/Doc/library/locale.rst +++ b/Doc/library/locale.rst @@ -158,7 +158,8 @@ The :mod:`locale` module defines the following exception and functions: .. function:: nl_langinfo(option) - Return some locale-specific information as a string. This function is not + Return some locale-specific information as a string (or a tuple for + ``ALT_DIGITS``). This function is not available on all systems, and the set of possible options might also vary across platforms. The possible argument values are numbers, for which symbolic constants are available in the locale module. @@ -311,8 +312,7 @@ The :mod:`locale` module defines the following exception and functions: .. data:: ALT_DIGITS - Get a representation of up to 100 values used to represent the values - 0 to 99. + Get a tuple of up to 100 strings used to represent the values 0 to 99. The function temporarily sets the ``LC_CTYPE`` locale to the locale of the category that determines the requested value (``LC_TIME``, |