GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove locale.resetlocale() function in Python 3.13 · Issue #104783 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove locale.resetlocale() function in Python 3.13#104783
Copy link

Description

@vstinner
vstinner
opened on May 23, 2023
Issue body actions

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

Linked PRs

  • gh-104783: Remove locale.resetlocale() function #104784
  • gh-104783: locale.getencoding() fallback uses FS encoding #105381
  • gh-104783: locale.getlocale() calls sys.getfilesystemencoding() #105401

Activity

  1. vstinner
    added 3 commits that reference this issue on May 23, 2023

    pythongh-104783: Remove locale.getdefaultlocale()

    1ecd49a

    pythongh-104783: Remove locale.getdefaultlocale()

    099fbf5

    pythongh-104783: Remove locale.getdefaultlocale()

    1bce4d9
  2. vstinner
    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
    vstinner
    on Jun 6, 2023
    MemberAuthor
    More actions

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

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

    pythongh-104783: Remove locale.resetlocale() function

    06e28a7

    gh-104783: Remove locale.resetlocale() function (#104784)

    0cb6b9b
  5. vstinner commented on Jun 6, 2023

    @vstinner
    vstinner
    on Jun 6, 2023
    MemberAuthor
    More actions

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

  6. vstinner
    closed this as completedon Jun 6, 2023
  7. vstinner
    added 4 commits that reference this issue on Jun 6, 2023

    pythongh-104783: locale.getencoding() fallback uses FS encoding

    13a71f6

    gh-104783: locale.getencoding() fallback uses FS encoding (#105381)

    b1a91d2

    pythongh-104783: locale.getlocale() calls sys.getfilesystemencoding()

    eed65ea

    gh-104783: locale.getlocale() calls sys.getfilesystemencoding() (#105401

    221d703
  8. hugovk commented on Oct 20, 2023

    @hugovk
    hugovk
    on Oct 20, 2023
    Member
    More actions

    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?

  9. vstinner commented on Oct 20, 2023

    @vstinner
    vstinner
    on Oct 20, 2023
    MemberAuthor
    More actions

    You should ask @methane who was against removing it.

  10. methane commented on Oct 22, 2023

    @methane
    methane
    on Oct 22, 2023
    Member
    More actions

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

    Reacted by Hugo van Kemenade
  11. hugovk commented on Oct 22, 2023

    @hugovk
    hugovk
    on Oct 22, 2023
    Member
    More actions

    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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.