[docs] trivial issues: missing "break", and bad indentation in example in tutorial section 4.4

Sparklinrose An American Lotus sparklinrose at hotmail.com
Sun Feb 10 16:51:57 CET 2013





http://docs.python.org/2/tutorial/controlflow.html Example is missing the break in the else: statement, consequently the prime number statements are printed multiple times  Also, 'else:' statement is indented at the same level as the inner 'for' statement, not at the level of the 'if' statementcuriously enough (on Windows Vista, Python2.7) does not complain of thisyou will only get one output statement, "2 is a prime number"Running environment and method:Windows Vista Home Premium SP 2Python 2.7created file 'primes.py'ran in command line window as 'python primes.py'got the single output statement, "2 is a prime number" So, two relatively trivial issues, but the page does say you want to know. Have a good day, and thanks for having this info up there, it is pretty handy as a refresher. Sparklinrose    		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20130210/7bcce018/attachment-0001.html>


More information about the docs mailing list