This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: FAQ/Programming typo: range[3] is used
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, eli.bendersky, python-dev
Priority: normal Keywords: easy

Created on 2011-08-25 02:50 by eli.bendersky, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg142952 - (view) Author: Eli Bendersky (eli.bendersky) * (Python committer) Date: 2011-08-25 02:50
User report from docs@python:


On
http://docs.python.org/faq/programming.html

for i in range[3]:

Should be:

for i in range(3):
msg142963 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-08-25 09:53
New changeset 0abe03195d09 by Georg Brandl in branch '3.2':
Close #12838: fix range() call.
http://hg.python.org/cpython/rev/0abe03195d09

New changeset 16a90cdb5ee4 by Georg Brandl in branch '2.7':
Close #12838: fix range() call.
http://hg.python.org/cpython/rev/16a90cdb5ee4
msg143488 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-09-04 06:56
New changeset 6e156a6c4fd9 by Georg Brandl in branch '3.2':
Close #12838: fix range() call.
http://hg.python.org/cpython/rev/6e156a6c4fd9
History
Date User Action Args
2022-04-11 14:57:21adminsetgithub: 57047
2011-09-04 06:56:38python-devsetmessages: + msg143488
2011-08-25 09:53:01python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg142963

resolution: fixed
stage: needs patch -> resolved
2011-08-25 02:50:37eli.benderskycreate