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
efeb43eb
Commit
efeb43eb
authored
Oct 04, 2008
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docstring change for *partition: use same tense as other docstrings.
Hyphenate left- and right-justified. Fix 'registerd' typo
parent
d810cdf8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
Objects/stringobject.c
Objects/stringobject.c
+7
-7
Objects/unicodeobject.c
Objects/unicodeobject.c
+6
-6
No files found.
Objects/stringobject.c
View file @
efeb43eb
...
@@ -1591,9 +1591,9 @@ string_split(PyStringObject *self, PyObject *args)
...
@@ -1591,9 +1591,9 @@ string_split(PyStringObject *self, PyObject *args)
PyDoc_STRVAR
(
partition__doc__
,
PyDoc_STRVAR
(
partition__doc__
,
"S.partition(sep) -> (head, sep, tail)
\n
\
"S.partition(sep) -> (head, sep, tail)
\n
\
\n
\
\n
\
Search
es for the separator sep in S, and returns
the part before it,
\n
\
Search
for the separator sep in S, and return
the part before it,
\n
\
the separator itself, and the part after it. If the separator is not
\n
\
the separator itself, and the part after it. If the separator is not
\n
\
found, return
s
S and two empty strings."
);
found, return S and two empty strings."
);
static
PyObject
*
static
PyObject
*
string_partition
(
PyStringObject
*
self
,
PyObject
*
sep_obj
)
string_partition
(
PyStringObject
*
self
,
PyObject
*
sep_obj
)
...
@@ -1622,9 +1622,9 @@ string_partition(PyStringObject *self, PyObject *sep_obj)
...
@@ -1622,9 +1622,9 @@ string_partition(PyStringObject *self, PyObject *sep_obj)
PyDoc_STRVAR
(
rpartition__doc__
,
PyDoc_STRVAR
(
rpartition__doc__
,
"S.rpartition(sep) -> (tail, sep, head)
\n
\
"S.rpartition(sep) -> (tail, sep, head)
\n
\
\n
\
\n
\
Search
es for the separator sep in S, starting at the end of S, and returns
\n
\
Search
for the separator sep in S, starting at the end of S, and return
\n
\
the part before it, the separator itself, and the part after it. If the
\n
\
the part before it, the separator itself, and the part after it. If the
\n
\
separator is not found, return
s
two empty strings and S."
);
separator is not found, return two empty strings and S."
);
static
PyObject
*
static
PyObject
*
string_rpartition
(
PyStringObject
*
self
,
PyObject
*
sep_obj
)
string_rpartition
(
PyStringObject
*
self
,
PyObject
*
sep_obj
)
...
@@ -3357,7 +3357,7 @@ Decodes S using the codec registered for encoding. encoding defaults\n\
...
@@ -3357,7 +3357,7 @@ Decodes S using the codec registered for encoding. encoding defaults\n\
to the default encoding. errors may be given to set a different error
\n
\
to the default encoding. errors may be given to set a different error
\n
\
handling scheme. Default is 'strict' meaning that encoding errors raise
\n
\
handling scheme. Default is 'strict' meaning that encoding errors raise
\n
\
a UnicodeDecodeError. Other possible values are 'ignore' and 'replace'
\n
\
a UnicodeDecodeError. Other possible values are 'ignore' and 'replace'
\n
\
as well as any other name registerd with codecs.register_error that is
\n
\
as well as any other name register
e
d with codecs.register_error that is
\n
\
able to handle UnicodeDecodeErrors."
);
able to handle UnicodeDecodeErrors."
);
static
PyObject
*
static
PyObject
*
...
@@ -3506,7 +3506,7 @@ pad(PyStringObject *self, Py_ssize_t left, Py_ssize_t right, char fill)
...
@@ -3506,7 +3506,7 @@ pad(PyStringObject *self, Py_ssize_t left, Py_ssize_t right, char fill)
PyDoc_STRVAR
(
ljust__doc__
,
PyDoc_STRVAR
(
ljust__doc__
,
"S.ljust(width[, fillchar]) -> string
\n
"
"S.ljust(width[, fillchar]) -> string
\n
"
"
\n
"
"
\n
"
"Return S left
justified in a string of length width. Padding is
\n
"
"Return S left
-
justified in a string of length width. Padding is
\n
"
"done using the specified fill character (default is a space)."
);
"done using the specified fill character (default is a space)."
);
static
PyObject
*
static
PyObject
*
...
@@ -3530,7 +3530,7 @@ string_ljust(PyStringObject *self, PyObject *args)
...
@@ -3530,7 +3530,7 @@ string_ljust(PyStringObject *self, PyObject *args)
PyDoc_STRVAR
(
rjust__doc__
,
PyDoc_STRVAR
(
rjust__doc__
,
"S.rjust(width[, fillchar]) -> string
\n
"
"S.rjust(width[, fillchar]) -> string
\n
"
"
\n
"
"
\n
"
"Return S right
justified in a string of length width. Padding is
\n
"
"Return S right
-
justified in a string of length width. Padding is
\n
"
"done using the specified fill character (default is a space)"
);
"done using the specified fill character (default is a space)"
);
static
PyObject
*
static
PyObject
*
...
...
Objects/unicodeobject.c
View file @
efeb43eb
...
@@ -7070,7 +7070,7 @@ unicode_length(PyUnicodeObject *self)
...
@@ -7070,7 +7070,7 @@ unicode_length(PyUnicodeObject *self)
PyDoc_STRVAR
(
ljust__doc__
,
PyDoc_STRVAR
(
ljust__doc__
,
"S.ljust(width[, fillchar]) -> int
\n
\
"S.ljust(width[, fillchar]) -> int
\n
\
\n
\
\n
\
Return S left
justified in a Unicode string of length width. Padding is
\n
\
Return S left
-
justified in a Unicode string of length width. Padding is
\n
\
done using the specified fill character (default is a space)."
);
done using the specified fill character (default is a space)."
);
static
PyObject
*
static
PyObject
*
...
@@ -7456,7 +7456,7 @@ unicode_rindex(PyUnicodeObject *self, PyObject *args)
...
@@ -7456,7 +7456,7 @@ unicode_rindex(PyUnicodeObject *self, PyObject *args)
PyDoc_STRVAR
(
rjust__doc__
,
PyDoc_STRVAR
(
rjust__doc__
,
"S.rjust(width[, fillchar]) -> unicode
\n
\
"S.rjust(width[, fillchar]) -> unicode
\n
\
\n
\
\n
\
Return S right
justified in a Unicode string of length width. Padding is
\n
\
Return S right
-
justified in a Unicode string of length width. Padding is
\n
\
done using the specified fill character (default is a space)."
);
done using the specified fill character (default is a space)."
);
static
PyObject
*
static
PyObject
*
...
@@ -7606,9 +7606,9 @@ PyUnicode_RPartition(PyObject *str_in, PyObject *sep_in)
...
@@ -7606,9 +7606,9 @@ PyUnicode_RPartition(PyObject *str_in, PyObject *sep_in)
PyDoc_STRVAR
(
partition__doc__
,
PyDoc_STRVAR
(
partition__doc__
,
"S.partition(sep) -> (head, sep, tail)
\n
\
"S.partition(sep) -> (head, sep, tail)
\n
\
\n
\
\n
\
Search
es for the separator sep in S, and returns
the part before it,
\n
\
Search
for the separator sep in S, and return
the part before it,
\n
\
the separator itself, and the part after it. If the separator is not
\n
\
the separator itself, and the part after it. If the separator is not
\n
\
found, return
s
S and two empty strings."
);
found, return S and two empty strings."
);
static
PyObject
*
static
PyObject
*
unicode_partition
(
PyUnicodeObject
*
self
,
PyObject
*
separator
)
unicode_partition
(
PyUnicodeObject
*
self
,
PyObject
*
separator
)
...
@@ -7619,9 +7619,9 @@ unicode_partition(PyUnicodeObject *self, PyObject *separator)
...
@@ -7619,9 +7619,9 @@ unicode_partition(PyUnicodeObject *self, PyObject *separator)
PyDoc_STRVAR
(
rpartition__doc__
,
PyDoc_STRVAR
(
rpartition__doc__
,
"S.rpartition(sep) -> (tail, sep, head)
\n
\
"S.rpartition(sep) -> (tail, sep, head)
\n
\
\n
\
\n
\
Search
es for the separator sep in S, starting at the end of S, and returns
\n
\
Search
for the separator sep in S, starting at the end of S, and return
\n
\
the part before it, the separator itself, and the part after it. If the
\n
\
the part before it, the separator itself, and the part after it. If the
\n
\
separator is not found, return
s
two empty strings and S."
);
separator is not found, return two empty strings and S."
);
static
PyObject
*
static
PyObject
*
unicode_rpartition
(
PyUnicodeObject
*
self
,
PyObject
*
separator
)
unicode_rpartition
(
PyUnicodeObject
*
self
,
PyObject
*
separator
)
...
...
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