[Python-checkins] r69895 - python/branches/py3k/Doc/library/functions.rst

georg.brandl python-checkins at python.org
Mon Feb 23 11:24:05 CET 2009


Author: georg.brandl
Date: Mon Feb 23 11:24:05 2009
New Revision: 69895

Log:
#5348: format() converts all kinds of values.

Modified:
   python/branches/py3k/Doc/library/functions.rst

Modified: python/branches/py3k/Doc/library/functions.rst
==============================================================================
--- python/branches/py3k/Doc/library/functions.rst	(original)
+++ python/branches/py3k/Doc/library/functions.rst	Mon Feb 23 11:24:05 2009
@@ -415,14 +415,15 @@
       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])


More information about the Python-checkins mailing list