[docs] [issue22106] Python 2 docs 'control flow/pass' section contains bad example

Ezio Melotti report at bugs.python.org
Wed Jul 30 15:57:53 CEST 2014


Ezio Melotti added the comment:

Keep in mind that this is in one of the first sections of the tutorial, where try/except, with, and generators have not been introduced yet.
Maybe the comment could be changed to a simpler "loop forever (use ctrl+c to stop)" so that it doesn't suggest that this is the way to wait for keyboard interrupts and/or a note like "note that this will use 100% of the CPU" could be added as well.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22106>
_______________________________________


More information about the docs mailing list