[issue46659] Deprecate locale.getdefaultlocale() function
Marc-Andre Lemburg
report at bugs.python.org
Sun Feb 6 16:13:32 EST 2022
Marc-Andre Lemburg <mal at egenix.com> added the comment:
> For these reasons, I propose to deprecate locale.getdefaultlocale(): setlocale(), getpreferredencoding() and getlocale() should be used instead.
Please see the discussion on https://bugs.python.org/issue43552: locale.getpreferredencoding() needs to be deprecated as well. Instead we should have a single locale.getencoding() as outlined there... perhaps in a separate ticket ?! Thanks.
----------
nosy: +lemburg
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46659>
_______________________________________
More information about the Python-bugs-list
mailing list