Commit f1023bad authored by Senthil Kumaran's avatar Senthil Kumaran

[minor] - Correct the docstring of locale.str. Patch by poleto.

parent b9b98c81
""" Locale support. """Locale support module.
The module provides low-level access to the C lib's locale APIs The module provides low-level access to the C lib's locale APIs and adds high
and adds high level number formatting APIs as well as a locale level number formatting APIs as well as a locale aliasing engine to complement
aliasing engine to complement these. these.
The aliasing engine includes support for many commonly used locale
names and maps them to values suitable for passing to the C lib's
setlocale() function. It also includes default encodings for all
supported locale names.
The aliasing engine includes support for many commonly used locale names and
maps them to values suitable for passing to the C lib's setlocale() function. It
also includes default encodings for all supported locale names.
""" """
import sys import sys
...@@ -303,7 +301,7 @@ def currency(val, symbol=True, grouping=False, international=False): ...@@ -303,7 +301,7 @@ def currency(val, symbol=True, grouping=False, international=False):
return s.replace('<', '').replace('>', '') return s.replace('<', '').replace('>', '')
def str(val): def str(val):
"""Convert float to integer, taking the locale into account.""" """Convert float to string, taking the locale into account."""
return format("%.12g", val) return format("%.12g", val)
def atof(string, func=float): def atof(string, func=float):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment