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.

Author charles.newey
Recipients charles.newey, docs@python
Date 2014-07-30.10:47:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406717229.88.0.0475217386951.issue22106@psf.upfronthosting.co.za>
In-reply-to
Content
URL: https://docs.python.org/2/tutorial/controlflow.html#pass-statements

Quoted verbatim:
"""
The pass statement does nothing. It can be used when a statement is required syntactically but the program requires no action. For example:
>>>

>>> while True:
...     pass  # Busy-wait for keyboard interrupt (Ctrl+C)
...

"""

While the example illustrates the point, it *may* give bad ideas to novice programmers reading it - "while True: pass" is an antipattern as it's very inefficient.
History
Date User Action Args
2014-07-30 10:47:09charles.neweysetrecipients: + charles.newey, docs@python
2014-07-30 10:47:09charles.neweysetmessageid: <1406717229.88.0.0475217386951.issue22106@psf.upfronthosting.co.za>
2014-07-30 10:47:09charles.neweylinkissue22106 messages
2014-07-30 10:47:09charles.neweycreate