[issue4335] inspect.getsourcelines ignores last line in module

Rafe Sacks report at bugs.python.org
Tue Dec 9 01:52:17 CET 2008


Rafe Sacks <rafesacks at gmail.com> added the comment:

"I feel this is not a bug because a file that ends with an unterminated
line is not a well-formed python program."

I used Komodo to make the file. Nothing special. I just made a new
python document and used it. If there is a Komodo Bug that is fine, but
if this issue can happen (and it has), then the module should be made
more robust to protect against it happening, shouldn't it?

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


More information about the Python-bugs-list mailing list