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
5792ce15
Commit
5792ce15
authored
Oct 06, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#19067: use imperative mood in range object docstrings. Patch by Marco Buttu.
parent
4e1f3d66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Objects/rangeobject.c
Objects/rangeobject.c
+3
-3
No files found.
Objects/rangeobject.c
View file @
5792ce15
...
...
@@ -139,7 +139,7 @@ PyDoc_STRVAR(range_doc,
"range(stop) -> range object
\n
\
range(start, stop[, step]) -> range object
\n
\
\n
\
Return
s
a virtual sequence of numbers from start to stop by step."
);
Return a virtual sequence of numbers from start to stop by step."
);
static
void
range_dealloc
(
rangeobject
*
r
)
...
...
@@ -865,14 +865,14 @@ static PyObject * range_iter(PyObject *seq);
static
PyObject
*
range_reverse
(
PyObject
*
seq
);
PyDoc_STRVAR
(
reverse_doc
,
"Return
s
a reverse iterator."
);
"Return a reverse iterator."
);
PyDoc_STRVAR
(
count_doc
,
"rangeobject.count(value) -> integer -- return number of occurrences of value"
);
PyDoc_STRVAR
(
index_doc
,
"rangeobject.index(value, [start, [stop]]) -> integer -- return index of value.
\n
"
"Raise
s
ValueError if the value is not present."
);
"Raise ValueError if the value is not present."
);
static
PyMethodDef
range_methods
[]
=
{
{
"__reversed__"
,
(
PyCFunction
)
range_reverse
,
METH_NOARGS
,
reverse_doc
},
...
...
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