Skip to content

Remove locale.resetlocale() function in Python 3.13 #104783

Closed

Description

@vstinner

Remove locale.getdefaultlocale() and locale.resetlocale() functions deprecated in Python 3.11: see issue #90817 for the rationale and the deprecation.

Linked PRs

Activity

  1. added 3 commits that reference this issue on May 23, 2023
  2. changed the title [-]Remove locale.getdefaultlocale() and locale.resetlocale()[/-] [+]Remove locale.resetlocale() function in Python 3.13[/+] on Jun 6, 2023
  3. vstinner commented on Jun 6, 2023

    @vstinner
    MemberAuthor

    @methane asked me to keep locale.getdefaultlocale(): #104784 (comment)

  4. added 2 commits that reference this issue on Jun 6, 2023
  5. vstinner commented on Jun 6, 2023

    @vstinner
    MemberAuthor

    Ok, let's start with removing locale.resetlocale(). The locale.getdefaultlocale() function can stay a little bit longer thanks to @methane :-)

  6. added 4 commits that reference this issue on Jun 6, 2023
  7. hugovk commented on Oct 20, 2023

    @hugovk
    Member

    Ok, let's start with removing locale.resetlocale(). The locale.getdefaultlocale() function can stay a little bit longer thanks to @methane :-)

    https://docs.python.org/3.13/library/locale.html#locale.getdefaultlocale says:

    Deprecated since version 3.11, removed in version 3.13.

    @vstinner We need to change that "3.13". Do you have an idea how much longer it can stay? Shall we bump it a release or two? Or delete the planned removal version?

  8. vstinner commented on Oct 20, 2023

    @vstinner
    MemberAuthor

    You should ask @methane who was against removing it.

  9. methane commented on Oct 22, 2023

    @methane
    Member

    My gut feeling is +2 years.
    When Python 3.15 is released, Python 3.10 become EOL.

  10. hugovk commented on Oct 22, 2023

    @hugovk
    Member

    3.15 sounds reasonable.

    Please see issue #111187 and PR #111188 to bump removal to 3.15.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions