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 dimitriprosser
Recipients dimitriprosser
Date 2012-11-28.16:01:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354118520.63.0.69805798217.issue16571@psf.upfronthosting.co.za>
In-reply-to
Content
When a loop (for loop in this case) contains multiple lines of code, if the lines are inconsistently indented, the for loop will only execute those lines on the final pass through the loop with no type of warning regarding indentation error. 

Ex. 

for i in range(0,10):
    print "I will print on every iteration: %d" % i  # TAB indented
    print "I will only print on the final iteration: %d" % i # 4 spaces
History
Date User Action Args
2012-11-28 16:02:00dimitriprossersetrecipients: + dimitriprosser
2012-11-28 16:02:00dimitriprossersetmessageid: <1354118520.63.0.69805798217.issue16571@psf.upfronthosting.co.za>
2012-11-28 16:02:00dimitriprosserlinkissue16571 messages
2012-11-28 16:01:59dimitriprossercreate