Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 66044:1499db99c4cd 2.7
Improved docstrings for str and unicode methods format and __format__.
| author | Eric Smith <eric@trueblade.com> |
|---|---|
| date | Sat, 06 Nov 2010 19:43:44 +0000 |
| parents | 25f6d570e7c1 |
| children | b36cb4602e21 |
line wrap: on
line diff
--- a/Objects/stringobject.c Sat Nov 06 15:46:46 2010 +0000 +++ b/Objects/stringobject.c Sat Nov 06 19:43:44 2010 +0000 @@ -3582,7 +3582,8 @@ PyDoc_STRVAR(format__doc__, "S.format(*args, **kwargs) -> string\n\ \n\ -"); +Return a formatted version of S, using substitutions from args and kwargs.\n\ +The substitutions are identified by braces ('{' and '}')."); static PyObject * string__format__(PyObject* self, PyObject* args) @@ -3616,7 +3617,7 @@ PyDoc_STRVAR(p_format__doc__, "S.__format__(format_spec) -> string\n\ \n\ -"); +Return a formatted version of S as described by format_spec."); static PyMethodDef
