GH-100766: Note that locale.LC_MESSAGES is not universal (GH-100702) by uranusjr · Pull Request #100702 · python/cpython
Conversation
The LC_MESSAGES value in locale is not universally available. The value is generally imported from C headers through localemodule.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.
FFY00
mentioned this pull request
FFY00
changed the title
Doc: Note that locale.LC_MESSAGES is not universal
GH-100766: Note that locale.LC_MESSAGES is not universal
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FFY00
changed the title
GH-100766: Note that locale.LC_MESSAGES is not universal
GH-100766: Note that locale.LC_MESSAGES is not universal (GH-100702)
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
…nGH-100702) (cherry picked from commit 105e373) Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
…nGH-100702) (cherry picked from commit 105e373) Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
uranusjr
deleted the
doc-locale-lc-messages-optional
branch