mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Merged revisions 82573 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82573 | senthil.kumaran | 2010-07-05 17:30:56 +0530 (Mon, 05 Jul 2010) | 3 lines Fix the docstrings of the capitalize method. ........
This commit is contained in:
parent
3592a46c4d
commit
74ceac2306
2 changed files with 3 additions and 2 deletions
|
@ -332,7 +332,8 @@ _Py_bytes_title(char *result, char *s, Py_ssize_t len)
|
||||||
PyDoc_STRVAR_shared(_Py_capitalize__doc__,
|
PyDoc_STRVAR_shared(_Py_capitalize__doc__,
|
||||||
"B.capitalize() -> copy of B\n\
|
"B.capitalize() -> copy of B\n\
|
||||||
\n\
|
\n\
|
||||||
Return a copy of B with only its first character capitalized (ASCII).");
|
Return a copy of B with only its first character capitalized (ASCII)\n\
|
||||||
|
and the rest lower-cased.");
|
||||||
|
|
||||||
void
|
void
|
||||||
_Py_bytes_capitalize(char *result, char *s, Py_ssize_t len)
|
_Py_bytes_capitalize(char *result, char *s, Py_ssize_t len)
|
||||||
|
|
|
@ -6766,7 +6766,7 @@ PyDoc_STRVAR(capitalize__doc__,
|
||||||
"S.capitalize() -> str\n\
|
"S.capitalize() -> str\n\
|
||||||
\n\
|
\n\
|
||||||
Return a capitalized version of S, i.e. make the first character\n\
|
Return a capitalized version of S, i.e. make the first character\n\
|
||||||
have upper case.");
|
have upper case and the rest lower case.");
|
||||||
|
|
||||||
static PyObject*
|
static PyObject*
|
||||||
unicode_capitalize(PyUnicodeObject *self)
|
unicode_capitalize(PyUnicodeObject *self)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue