From: Georg Brandl Date: Mon, 23 Feb 2009 10:24:05 +0000 (+0000) Subject: #5348: format() converts all kinds of values. X-Git-Tag: v3.1a1~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5579ba9183c7881d38bd3e32da20ee5e35406238;p=python #5348: format() converts all kinds of values. --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index b735c8f367..e1436f8174 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -415,14 +415,15 @@ are always available. They are listed here in alphabetical order. pair: str; format single: __format__ - Convert a string or a number to a "formatted" representation, as controlled - by *format_spec*. The interpretation of *format_spec* will depend on the - type of the *value* argument, however there is a standard formatting syntax - that is used by most built-in types: :ref:`formatspec`. + Convert a *value* to a "formatted" representation, as controlled by + *format_spec*. The interpretation of *format_spec* will depend on the type + of the *value* argument, however there is a standard formatting syntax that + is used by most built-in types: :ref:`formatspec`. .. note:: - ``format(value, format_spec)`` merely calls ``value.__format__(format_spec)``. + ``format(value, format_spec)`` merely calls + ``value.__format__(format_spec)``. .. function:: frozenset([iterable])