[docs] [issue22106] Python 2 docs 'control flow/pass' section contains bad example
report at bugs.python.org
Wed Jul 30 13:16:42 CEST 2014
Charles Newey added the comment:
Your point about using "pass" with the "with" statement sounds like a better example than using "pass" in a loop.
Perhaps even something like adding a note to the example to clarify it:
# Don't use this in Python code - it is for illustrative purposes only
pass # Busy-wait for keyboard interrupt (Ctrl+C)
On the other hand -- one could argue that the documentation should not show "incorrect" uses of Python syntax at all.
Python tracker <report at bugs.python.org>
More information about the docs