Skip to content

Remove deprecated function locale.getdefaultlocale #134086

Closed as not planned
Closed as not planned

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

  1. added
    type-featureA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directory
    on May 16, 2025
  2. 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?

  3. StanFromIreland commented on May 16, 2025

    @StanFromIreland
    Member

    @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.

  4. 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

  5. StanFromIreland commented on May 17, 2025

    @StanFromIreland
    Member

    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?

  6. StanFromIreland commented on Dec 23, 2025

    @StanFromIreland
    Member

    It has been undeprecated.

  7. cclauss commented on Jun 11, 2026

    @cclauss
    Contributor
  8. hugovk commented on Jun 11, 2026

    @hugovk
    Member

    No, it was undeprecated in #130796 / #143069.

    Let's backport the undeprecation to avoid further confusion.

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

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions