FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] [3.13] gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) (GH-124974) (GH-125232) by miss-islington · Pull Request #125284 · python/cpython · GitHub

Repository navigation

[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.12from
miss-islington:backport-26a9318-3.12
Oct 11, 2024
Merged

serhiy-storchaka merged 1 commit into
python:3.12from
miss-islington:backport-26a9318-3.12

Conversation

miss-islington commented Oct 10, 2024 •
edited by github-actions Bot
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Already is. #125311.

miss-islington deleted the backport-26a9318-3.12 branch January 2, 2026 17:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL