[issue24869] shlex lineno inaccurate with certain inputs
Gareth Rees
report at bugs.python.org
Mon Jun 13 13:53:11 EDT 2016
Gareth Rees added the comment:
A third alternative:
3. Add a method whose effect is to consume comments and whitespace, but which does not yield a token. You could then call this method, and then look at shlex.lineno, which will be the line number of the first character of the next token (if there is a next token).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24869>
_______________________________________
More information about the Python-bugs-list
mailing list