mirror of
https://github.com/python/cpython.git
synced 2025-08-17 23:31:09 +00:00
Improved docstrings for str and unicode methods format and __format__.
This commit is contained in:
parent
2f0a040dfe
commit
6c84085cfb
2 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue