[Python-checkins] r86277 - python/branches/py3k/Objects/unicodeobject.c
eric.smith
python-checkins at python.org
Sat Nov 6 20:27:38 CET 2010
Author: eric.smith
Date: Sat Nov 6 20:27:37 2010
New Revision: 86277
Log:
Added more to docstrings for str.format, format_map, and __format__.
Modified:
python/branches/py3k/Objects/unicodeobject.c
Modified: python/branches/py3k/Objects/unicodeobject.c
==============================================================================
--- python/branches/py3k/Objects/unicodeobject.c (original)
+++ python/branches/py3k/Objects/unicodeobject.c Sat Nov 6 20:27:37 2010
@@ -9026,12 +9026,14 @@
PyDoc_STRVAR(format__doc__,
"S.format(*args, **kwargs) -> str\n\
\n\
-");
+Return a formatted version of S, using substitutions from args and kwargs.\n\
+The substitutions are identified by braces ('{' and '}').");
PyDoc_STRVAR(format_map__doc__,
"S.format_map(mapping) -> str\n\
\n\
-");
+Return a formatted version of S, using substitutions from mapping.\n\
+The substitutions are identified by braces ('{' and '}').");
static PyObject *
unicode__format__(PyObject* self, PyObject* args)
@@ -9049,7 +9051,7 @@
PyDoc_STRVAR(p_format__doc__,
"S.__format__(format_spec) -> str\n\
\n\
-");
+Return a formatted version of S as described by format_spec.");
static PyObject *
unicode__sizeof__(PyUnicodeObject *v)
More information about the Python-checkins
mailing list