Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9e27dd8a
Commit
9e27dd8a
authored
Jul 05, 2010
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the docstrings of the capitalize method.
parent
58a67e57
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Objects/bytes_methods.c
Objects/bytes_methods.c
+2
-1
Objects/unicodeobject.c
Objects/unicodeobject.c
+1
-1
No files found.
Objects/bytes_methods.c
View file @
9e27dd8a
...
...
@@ -332,7 +332,8 @@ _Py_bytes_title(char *result, char *s, Py_ssize_t len)
PyDoc_STRVAR_shared
(
_Py_capitalize__doc__
,
"B.capitalize() -> copy of B
\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
_Py_bytes_capitalize
(
char
*
result
,
char
*
s
,
Py_ssize_t
len
)
...
...
Objects/unicodeobject.c
View file @
9e27dd8a
...
...
@@ -6705,7 +6705,7 @@ PyDoc_STRVAR(capitalize__doc__,
"S.capitalize() -> str
\n
\
\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
*
unicode_capitalize
(
PyUnicodeObject
*
self
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment