mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-47000: Add locale.getencoding()
(GH-32068)
This commit is contained in:
parent
cd29bd13ef
commit
6773203487
11 changed files with 88 additions and 46 deletions
|
@ -285,6 +285,13 @@ inspect
|
|||
* Add :func:`inspect.ismethodwrapper` for checking if the type of an object is a
|
||||
:class:`~types.MethodWrapperType`. (Contributed by Hakan Çelik in :issue:`29418`.)
|
||||
|
||||
locale
|
||||
------
|
||||
|
||||
* Add :func:`locale.getencoding` to get the current locale encoding. It is similar to
|
||||
``locale.getpreferredencoding(False)`` but ignores the
|
||||
:ref:`Python UTF-8 Mode <utf8-mode>`.
|
||||
|
||||
math
|
||||
----
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue