Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

GH-100766: Note that locale.LC_MESSAGES is not universal (GH-100702)#100702

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@uranusjr
Copy link
Contributor

@uranusjruranusjr commentedJan 3, 2023
edited by bedevere-bot
Loading

TheLC_MESSAGES value inlocale is not universally available. The value is generally imported from C headers throughlocalemodule.c. The sourc notes this specifically:

# Yuck: LC_MESSAGES is non-standard: can't tell whether it exists before
# trying the import. So __all__ is also fiddled at the end of the file.

This makes the fact more visible to users only reading the documentation.

@bedevere-botbedevere-bot added awaiting review docsDocumentation in the Doc dir skip news labelsJan 3, 2023
@FFY00FFY00 changed the titleDoc: Note that locale.LC_MESSAGES is not universalGH-100766: Note that locale.LC_MESSAGES is not universalJan 5, 2023
Copy link
Member

@FFY00FFY00 left a comment

Choose a reason for hiding this comment

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

@uranusjr thanks for the fix!

@FFY00FFY00 added needs backport to 3.10only security fixes needs backport to 3.11only security fixes labelsJan 5, 2023
@FFY00FFY00 changed the titleGH-100766: Note that locale.LC_MESSAGES is not universalGH-100766: Note that locale.LC_MESSAGES is not universal (GH-100702)Jan 5, 2023
@FFY00FFY00 merged commit105e373 intopython:mainJan 5, 2023
@miss-islington
Copy link
Contributor

Thanks@uranusjr for the PR, and@FFY00 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-100767 is a backport of this pull request to the3.11 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.11only security fixes labelJan 5, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJan 5, 2023
…nGH-100702)(cherry picked from commit105e373)Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
@bedevere-bot
Copy link

GH-100768 is a backport of this pull request to the3.10 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.10only security fixes labelJan 5, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJan 5, 2023
…nGH-100702)(cherry picked from commit105e373)Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
@uranusjruranusjr deleted the doc-locale-lc-messages-optional branchJanuary 5, 2023 04:56
carljm added a commit to carljm/cpython that referenced this pull requestJan 5, 2023
* main:pythonGH-100288: Remove LOAD_ATTR_METHOD_WITH_DICT instruction. (pythonGH-100753)pythonGH-100766: Note that locale.LC_MESSAGES is not universal (pythonGH-100702)
carljm added a commit to carljm/cpython that referenced this pull requestJan 5, 2023
* main:pythonGH-100288: Remove LOAD_ATTR_METHOD_WITH_DICT instruction. (pythonGH-100753)pythonGH-100766: Note that locale.LC_MESSAGES is not universal (pythonGH-100702)  Drop myself from pathlib maintenance (python#100757)pythongh-100739: Respect mock spec when checking for unsafe prefixes (python#100740)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@FFY00FFY00FFY00 approved these changes

Assignees

No one assigned

Labels

docsDocumentation in the Doc dirskip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@uranusjr@miss-islington@bedevere-bot@FFY00

[8]ページ先頭

©2009-2025 Movatter.jp