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
bf086a1e
Commit
bf086a1e
authored
May 12, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
range() returns an iterable, not an iterator.
parent
9cb1e277
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/library/functions.rst
Doc/library/functions.rst
+2
-2
No files found.
Doc/library/functions.rst
View file @
bf086a1e
...
...
@@ -874,11 +874,11 @@ are always available. They are listed here in alphabetical order.
..
XXX
does
accept
objects
with
__index__
too
..
function
::
range
([
start
,]
stop
[,
step
])
This
is
a
versatile
function
to
create
itera
tor
s
yielding
arithmetic
This
is
a
versatile
function
to
create
itera
ble
s
yielding
arithmetic
progressions
.
It
is
most
often
used
in
:
keyword
:`
for
`
loops
.
The
arguments
must
be
integers
.
If
the
*
step
*
argument
is
omitted
,
it
defaults
to
``
1
``.
If
the
*
start
*
argument
is
omitted
,
it
defaults
to
``
0
``.
The
full
form
returns
an
itera
tor
of
integers
``[
start
,
start
+
step
,
start
+
2
*
step
,
returns
an
itera
ble
of
integers
``[
start
,
start
+
step
,
start
+
2
*
step
,
...]``.
If
*
step
*
is
positive
,
the
last
element
is
the
largest
``
start
+
i
*
step
``
less
than
*
stop
*;
if
*
step
*
is
negative
,
the
last
element
is
the
smallest
``
start
+
i
*
step
``
greater
than
*
stop
*.
*
step
*
must
not
be
zero
...
...
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