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 r.david.murray
Recipients artxyz, r.david.murray, zach.ware
Date 2016-09-21.16:21:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474474912.7.0.682094926222.issue28241@psf.upfronthosting.co.za>
In-reply-to
Content
Note also that your first example worked only because your loop variable was named i.  If you used, say, 'j', you'd get the same result as in your second example.  This is because the closure is over the named variable, and both in your definition loop and your print loop, that variable is the 'i' in the global namespace.
History
Date User Action Args
2016-09-21 16:21:52r.david.murraysetrecipients: + r.david.murray, zach.ware, artxyz
2016-09-21 16:21:52r.david.murraysetmessageid: <1474474912.7.0.682094926222.issue28241@psf.upfronthosting.co.za>
2016-09-21 16:21:52r.david.murraylinkissue28241 messages
2016-09-21 16:21:52r.david.murraycreate