Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.12] [3.13] gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) (GH-124974) (GH-125232)#125284

Merged
serhiy-storchaka merged 1 commit into
python:3.12python/cpython:3.12from
miss-islington:backport-26a9318-3.12miss-islington/cpython:backport-26a9318-3.12Copy head branch name to clipboard
Oct 11, 2024
Merged

[3.12] [3.13] gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) (GH-124974) (GH-125232)#125284
serhiy-storchaka merged 1 commit into
python:3.12python/cpython:3.12from
miss-islington:backport-26a9318-3.12miss-islington/cpython:backport-26a9318-3.12Copy head branch name to clipboard

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 10, 2024

Copy link
Copy Markdown
Contributor

(cherry picked from commit 26a9318)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Returns a tuple of up to 100 strings for ALT_DIGITS lookup (an empty tuple on most locales).
Previously it returned the first item of that tuple or an empty string.
(cherry picked from commit 21c04e1)


📚 Documentation preview 📚: https://cpython-previews--125284.org.readthedocs.build/

…thonGH-124974) (pythonGH-125232)

(cherry picked from commit 26a9318)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Returns a tuple of up to 100 strings for ALT_DIGITS lookup (an empty tuple on most locales).
Previously it returned the first item of that tuple or an empty string.
(cherry picked from commit 21c04e1)
Comment thread Lib/test/test__locale.py
with self.subTest(locale=loc):
alt_digits = nl_langinfo(locale.ALT_DIGITS)
self.assertIsInstance(alt_digits, tuple)
if count and not alt_digits and support.is_apple:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no support.is_apple on 3.12.

@ambv, should the macOS check be required to merge PRs?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already is. #125311.

@miss-islington miss-islington deleted the backport-26a9318-3.12 branch January 2, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.