You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove locale.resetlocale() function in Python 3.13 #104783
changed the title [-]Remove locale.getdefaultlocale() and locale.resetlocale()[/-][+]Remove locale.resetlocale() function in Python 3.13[/+]on Jun 6, 2023
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?
Activity
pythongh-104783: Remove locale.getdefaultlocale()
pythongh-104783: Remove locale.getdefaultlocale()
pythongh-104783: Remove locale.getdefaultlocale()
[-]Remove locale.getdefaultlocale() and locale.resetlocale()[/-][+]Remove locale.resetlocale() function in Python 3.13[/+]vstinner commentedon Jun 6, 2023
@methane asked me to keep locale.getdefaultlocale(): #104784 (comment)
pythongh-104783: Remove locale.resetlocale() function
gh-104783: Remove locale.resetlocale() function (#104784)
vstinner commentedon Jun 6, 2023
Ok, let's start with removing locale.resetlocale(). The locale.getdefaultlocale() function can stay a little bit longer thanks to @methane :-)
pythongh-104783: locale.getencoding() fallback uses FS encoding
gh-104783: locale.getencoding() fallback uses FS encoding (#105381)
pythongh-104783: locale.getlocale() calls sys.getfilesystemencoding()
gh-104783: locale.getlocale() calls sys.getfilesystemencoding() (#105401
hugovk commentedon Oct 20, 2023
https://docs.python.org/3.13/library/locale.html#locale.getdefaultlocale says:
@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?
vstinner commentedon Oct 20, 2023
You should ask @methane who was against removing it.
methane commentedon Oct 22, 2023
My gut feeling is +2 years.
When Python 3.15 is released, Python 3.10 become EOL.
hugovk commentedon Oct 22, 2023
3.15 sounds reasonable.
Please see issue #111187 and PR #111188 to bump removal to 3.15.