Skip to content

gh-85204: Improve locale.setlocale example - #132683

Merged
hugovk merged 1 commit into
python:mainfrom
StanFromIreland:gh-85204
Dec 16, 2025
Merged

gh-85204: Improve locale.setlocale example#132683
hugovk merged 1 commit into
python:mainfrom
StanFromIreland:gh-85204

Conversation

@StanFromIreland

@StanFromIrelandStanFromIreland commented Apr 18, 2025

Copy link
Copy Markdown
Member

Should now work on more platforms. getlocale returned LC_CTYPE and not LC_ALL so switched to setlocale and since it was then pretty much a setlocale example I moved it there.


📚 Documentation preview 📚: https://cpython-previews--132683.org.readthedocs.build/en/132683/library/locale.html#locale.setlocale

@ZeroIntensityZeroIntensity left a comment

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.

LGTM

@miss-islington-app

Copy link
Copy Markdown

Thanks @StanFromIreland for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 16, 2025
(cherry picked from commit c24e238)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 16, 2025
(cherry picked from commit c24e238)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@bedevere-app

Copy link
Copy Markdown

GH-142798 is a backport of this pull request to the 3.14 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.14 bugs and security fixes label Dec 16, 2025
@bedevere-app

Copy link
Copy Markdown

GH-142799 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Dec 16, 2025
hugovk pushed a commit that referenced this pull request Dec 16, 2025
)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
hugovk pushed a commit that referenced this pull request Dec 16, 2025
)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@StanFromIreland
StanFromIreland deleted the gh-85204 branch December 16, 2025 16:57
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

@StanFromIreland@ZeroIntensity@hugovk