Skip to content

Remove deprecated function locale.getdefaultlocale #134086

Open
@picnixz

Description

@picnixz

Feature or enhancement

It was deprecated in Python 3.11, and planned to be removed in 3.13, but then delayed until 3.15.

Some related issues that we maybe need to solve before really removing it: #130796.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

#130796

Linked PRs

Activity

added
type-featureA feature request or enhancement
stdlibPython modules in the Lib dir
on May 16, 2025
mkaraev

mkaraev commented on May 16, 2025

@mkaraev
Contributor

@picnixz it seems to be a good issue for first-time contribution. Could I help with it?

StanFromIreland

StanFromIreland commented on May 16, 2025

@StanFromIreland
Contributor

@mkaraev Feel free to submit a solution for:

Some related issues that we maybe need to solve before really removing it: #130796.

This one has to wait.

sergey-miryanov

sergey-miryanov commented on May 16, 2025

@sergey-miryanov
Contributor

@picnixz it seems to be a good issue for first-time contribution. Could I help with it?

IIUC, you have to look 'easy' label - https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22easy%22

StanFromIreland

StanFromIreland commented on May 17, 2025

@StanFromIreland
Contributor

I created a draft for when the dependent is resolved. What do we want to do with windows_locale? It is now no longer used, and is not documented, but also not private for some reason. Deprecate normally for 3.16 or similar depending on external usage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Remove deprecated function `locale.getdefaultlocale` · Issue #134086 · python/cpython

      Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

      Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant