From 5579ba9183c7881d38bd3e32da20ee5e35406238 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 23 Feb 2009 10:24:05 +0000 Subject: #5348: format() converts all kinds of values. --- Doc/library/functions.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index b735c8f..e1436f8 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]) -- cgit v0.12