R. David Murray <rdmur...@bitdance.com> added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10189>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to