diff --git a/Doc/library/locale.rst b/Doc/library/locale.rst index 181f534abe2c02..69959a3451e016 100644 --- a/Doc/library/locale.rst +++ b/Doc/library/locale.rst @@ -371,13 +371,14 @@ The :mod:`locale` module defines the following exception and functions: .. function:: format(format, val, grouping=False, monetary=False) - Please note that this function works like format_string but will only work - for exactly one %char specifier. + Please note that this function works like :meth:`format_string` but will + only work for exactly one ``%char`` specifier. For example, ``'%f'`` and + ``'%.0f'`` are both valid specifiers, but ``'%f kB'`` is not. For whole format strings, use :func:`format_string`. .. deprecated:: 3.7 - Use :meth:`format_string` instead + Use :meth:`format_string` instead. .. function:: currency(val, symbol=True, grouping=False, international=False) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy