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 alex, benjamin.peterson, georg.brandl, jhylton, r.david.murray
Date 2010-10-26.11:53:11
SpamBayes Score 1.2282536e-10
Marked as misclassified No
Message-id <1288093994.9.0.41522480052.issue10189@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, but in that particular case the exact line referenced is involved in the error, since it that error is that the symbol is both nonlocal and an argument, and the error points to the head of the block which is the 'def' statement.

Attached is a patch that adds the available line number info to all of the error messages except the one for nonlocal at the global level.  In that case the line number will always be zero, so that does not
History
Date User Action Args
2010-10-26 11:53:23r.david.murrayunlinkissue10189 messages
2010-10-26 11:53:15r.david.murraysetrecipients: + r.david.murray, jhylton, georg.brandl, benjamin.peterson, alex
2010-10-26 11:53:14r.david.murraysetmessageid: <1288093994.9.0.41522480052.issue10189@psf.upfronthosting.co.za>
2010-10-26 11:53:12r.david.murraylinkissue10189 messages
2010-10-26 11:53:11r.david.murraycreate