summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorCédric Krier <cedk@users.noreply.github.com>2021-04-12 12:17:40 (GMT)
committerGitHub <noreply@github.com>2021-04-12 12:17:40 (GMT)
commite126547c070fbc080562abb08e16a2c93a8a805d (patch)
treeec2d7f22999855aa870d69891fb476106f2b9fe0 /Doc/library
parent95bbb331ecb3ef5d05859d90b287cc3d27613c86 (diff)
downloadcpython-e126547c070fbc080562abb08e16a2c93a8a805d.zip
cpython-e126547c070fbc080562abb08e16a2c93a8a805d.tar.gz
cpython-e126547c070fbc080562abb08e16a2c93a8a805d.tar.bz2
bpo-34311: Add locale.localize (GH-15275)
* Add method localize to the locale module * Update the documentation of the locale module
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/locale.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/locale.rst b/Doc/library/locale.rst
index 0a77be4..60d0c59 100644
--- a/Doc/library/locale.rst
+++ b/Doc/library/locale.rst
@@ -427,6 +427,14 @@ The :mod:`locale` module defines the following exception and functions:
.. versionadded:: 3.5
+.. function:: localize(string, grouping=False, monetary=False)
+
+ Converts a normalized number string into a formatted string following the
+ :const:`LC_NUMERIC` settings.
+
+ .. versionadded:: 3.10
+
+
.. function:: atof(string)
Converts a string to a floating point number, following the :const:`LC_NUMERIC`