diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-06-03 03:13:30 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-06-03 03:13:30 (GMT) |
commit | 3db5e7be1cf61756e89c40efcc1e24f00f33425b (patch) | |
tree | dc4beb3543065c6749324de4aed4b329b36b4521 /Doc/reference | |
parent | b2b35af7512c9b62fb4060973f7227ded4163d70 (diff) | |
download | cpython-3db5e7be1cf61756e89c40efcc1e24f00f33425b.zip cpython-3db5e7be1cf61756e89c40efcc1e24f00f33425b.tar.gz cpython-3db5e7be1cf61756e89c40efcc1e24f00f33425b.tar.bz2 |
range() doesn't return a list
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/compound_stmts.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 214143b..016ccbb 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -182,7 +182,7 @@ the next item assigned to it. Names in the target list are not deleted when the loop is finished, but if the sequence is empty, it will not have been assigned to at all by the loop. Hint: the built-in function :func:`range` returns an iterator of integers suitable to -emulate the effect of Pascal's ``for i := a to b do``; e.g., ``range(3)`` +emulate the effect of Pascal's ``for i := a to b do``; e.g., ``list(range(3))`` returns the list ``[0, 1, 2]``. .. note:: |