summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2010-11-06 19:27:37 (GMT)
committerEric Smith <eric@trueblade.com>2010-11-06 19:27:37 (GMT)
commit51d2fd983bcc85342b631e27a33e214c691e53be (patch)
treec168151ef521fc2a76f1247eaaf0897b194e08d1 /Objects/unicodeobject.c
parent7c03d8c5c6928af3ed404016b31b1bcdbafd26cd (diff)
downloadcpython-51d2fd983bcc85342b631e27a33e214c691e53be.zip
cpython-51d2fd983bcc85342b631e27a33e214c691e53be.tar.gz
cpython-51d2fd983bcc85342b631e27a33e214c691e53be.tar.bz2
Added more to docstrings for str.format, format_map, and __format__.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 35d8600..32bcb34 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -9026,12 +9026,14 @@ unicode_endswith(PyUnicodeObject *self,
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 @@ unicode__format__(PyObject* self, PyObject* args)
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)