Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16562f4

Browse files
committed
Merged revisions 86277 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r86277 | eric.smith | 2010-11-06 15:27:37 -0400 (Sat, 06 Nov 2010) | 1 line Added more to docstrings for str.format, format_map, and __format__. ........
1 parent 651e6b5 commit 16562f4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Objects/unicodeobject.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8803,7 +8803,8 @@ unicode_endswith(PyUnicodeObject *self,
88038803
PyDoc_STRVAR(format__doc__,
88048804
"S.format(*args, **kwargs) -> str\n\
88058805
\n\
8806-
");
8806+
Return a formatted version of S, using substitutions from args and kwargs.\n\
8807+
The substitutions are identified by braces ('{' and '}').");
88078808

88088809
static PyObject *
88098810
unicode__format__(PyObject* self, PyObject* args)
@@ -8821,7 +8822,7 @@ unicode__format__(PyObject* self, PyObject* args)
88218822
PyDoc_STRVAR(p_format__doc__,
88228823
"S.__format__(format_spec) -> str\n\
88238824
\n\
8824-
");
8825+
Return a formatted version of S as described by format_spec.");
88258826

88268827
static PyObject *
88278828
unicode__sizeof__(PyUnicodeObject *v)

0 commit comments

Comments
 (0)