Kaydet (Commit) 6dbdedb0 authored tarafından Berker Peksag's avatar Berker Peksag Kaydeden (comit) GitHub

bpo-10379: Add %char examples to locale.format() docs (GH-1145)

üst 8526fb74
......@@ -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)
......
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