Commit 6c84085c authored by Eric Smith's avatar Eric Smith

Improved docstrings for str and unicode methods format and __format__.

parent 2f0a040d
...@@ -3582,7 +3582,8 @@ string_getnewargs(PyStringObject *v) ...@@ -3582,7 +3582,8 @@ string_getnewargs(PyStringObject *v)
PyDoc_STRVAR(format__doc__, PyDoc_STRVAR(format__doc__,
"S.format(*args, **kwargs) -> string\n\ "S.format(*args, **kwargs) -> string\n\
\n\ \n\
"); Return a formatted version of S, using substitutions from args and kwargs.\n\
The substitutions are identified by braces ('{' and '}').");
static PyObject * static PyObject *
string__format__(PyObject* self, PyObject* args) string__format__(PyObject* self, PyObject* args)
...@@ -3616,7 +3617,7 @@ done: ...@@ -3616,7 +3617,7 @@ done:
PyDoc_STRVAR(p_format__doc__, PyDoc_STRVAR(p_format__doc__,
"S.__format__(format_spec) -> string\n\ "S.__format__(format_spec) -> string\n\
\n\ \n\
"); Return a formatted version of S as described by format_spec.");
static PyMethodDef static PyMethodDef
......
...@@ -7728,7 +7728,8 @@ unicode_endswith(PyUnicodeObject *self, ...@@ -7728,7 +7728,8 @@ unicode_endswith(PyUnicodeObject *self,
PyDoc_STRVAR(format__doc__, PyDoc_STRVAR(format__doc__,
"S.format(*args, **kwargs) -> unicode\n\ "S.format(*args, **kwargs) -> unicode\n\
\n\ \n\
"); Return a formatted version of S, using substitutions from args and kwargs.\n\
The substitutions are identified by braces ('{' and '}').");
static PyObject * static PyObject *
unicode__format__(PyObject *self, PyObject *args) unicode__format__(PyObject *self, PyObject *args)
...@@ -7762,7 +7763,7 @@ unicode__format__(PyObject *self, PyObject *args) ...@@ -7762,7 +7763,7 @@ unicode__format__(PyObject *self, PyObject *args)
PyDoc_STRVAR(p_format__doc__, PyDoc_STRVAR(p_format__doc__,
"S.__format__(format_spec) -> unicode\n\ "S.__format__(format_spec) -> unicode\n\
\n\ \n\
"); Return a formatted version of S as described by format_spec.");
static PyObject * static PyObject *
unicode__sizeof__(PyUnicodeObject *v) unicode__sizeof__(PyUnicodeObject *v)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment