Skip to content

Commit a930062

Browse files
[3.10] Document func parameter of locale.atof (GH-18183) (GH-32262)
The second parameter (named `func`) has been present since the `locale` module was introduced in eef1d4e, but has never been documented. This commit updates the documentation for `locale.atof` to clarify the behavior of the function and how the `func` parameter is used. Signed-off-by: Kevin Locke <[email protected]> (cherry picked from commit 208da6d) Co-authored-by: Kevin Locke <[email protected]>
1 parent 3031b86 commit a930062

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/locale.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,10 @@ The :mod:`locale` module defines the following exception and functions:
435435
.. versionadded:: 3.10
436436

437437

438-
.. function:: atof(string)
438+
.. function:: atof(string, func=float)
439439

440-
Converts a string to a floating point number, following the :const:`LC_NUMERIC`
441-
settings.
440+
Converts a string to a number, following the :const:`LC_NUMERIC` settings,
441+
by calling *func* on the result of calling :func:`delocalize` on *string*.
442442

443443

444444
.. function:: atoi(string)

0 commit comments

Comments
 (0)