summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-10-23 20:52:31 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-10-23 20:52:31 (GMT)
commitb64bca985283716bd86cde2876808a0b46937081 (patch)
tree2c2dac4d172cc64bf260b1cd906121123fc338a8 /Doc
parentfce60eaf150127ab7b5ab8ed2943f85706f5f67a (diff)
downloadcpython-b64bca985283716bd86cde2876808a0b46937081.zip
cpython-b64bca985283716bd86cde2876808a0b46937081.tar.gz
cpython-b64bca985283716bd86cde2876808a0b46937081.tar.bz2
Issue #13918: Provide a locale.delocalize() function which can remove
locale-specific number formatting from a string representing a number, without then converting it to a specific type. Patch by Cédric Krier.
Diffstat (limited to 'Doc')
-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 9600193..c3a530c 100644
--- a/Doc/library/locale.rst
+++ b/Doc/library/locale.rst
@@ -387,6 +387,14 @@ The :mod:`locale` module defines the following exception and functions:
``str(float)``, but takes the decimal point into account.
+.. function:: delocalize(string)
+
+ Converts a string into a normalized number string, following the
+ :const:'LC_NUMERIC`settings.
+
+ .. versionadded:: 3.5
+
+
.. function:: atof(string)
Converts a string to a floating point number, following the :const:`LC_NUMERIC`