summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2010-11-06 19:43:44 (GMT)
committerEric Smith <eric@trueblade.com>2010-11-06 19:43:44 (GMT)
commit6c84085cfba0fe420535caf86ed9b416e81e56d8 (patch)
tree10e0145928f79b4439545bca2032caff0bce435b /Objects/unicodeobject.c
parent2f0a040dfed11f6c1e57bef0ad6eedbae7ce636b (diff)
downloadcpython-6c84085cfba0fe420535caf86ed9b416e81e56d8.zip
cpython-6c84085cfba0fe420535caf86ed9b416e81e56d8.tar.gz
cpython-6c84085cfba0fe420535caf86ed9b416e81e56d8.tar.bz2
Improved docstrings for str and unicode methods format and __format__.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 07b4e19..1cd3688 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -7728,7 +7728,8 @@ unicode_endswith(PyUnicodeObject *self,
PyDoc_STRVAR(format__doc__,
"S.format(*args, **kwargs) -> unicode\n\
\n\
-");
+Return a formatted version of S, using substitutions from args and kwargs.\n\
+The substitutions are identified by braces ('{' and '}').");
static PyObject *
unicode__format__(PyObject *self, PyObject *args)
@@ -7762,7 +7763,7 @@ unicode__format__(PyObject *self, PyObject *args)
PyDoc_STRVAR(p_format__doc__,
"S.__format__(format_spec) -> unicode\n\
\n\
-");
+Return a formatted version of S as described by format_spec.");
static PyObject *
unicode__sizeof__(PyUnicodeObject *v)