[issue9974] tokenizer.untokenize not invariant with line continuations

Brian Bossé report at bugs.python.org
Tue Oct 19 12:11:04 CEST 2010


Brian Bossé <penrif at gmail.com> added the comment:

Yup, that's related to ENDMARKER being tokenized to its own line, even if EOF happens at the end of the last line of actual code.  I don't know if anything relies on that behavior so I can't really suggest changing it.

My patch handles the described situation, albeit a bit poorly as I mentioned in comment 2.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9974>
_______________________________________


More information about the Python-bugs-list mailing list