[issue4335] inspect.getsourcelines ignores last line in module
Alexander Belopolsky
report at bugs.python.org
Tue Dec 9 03:14:38 CET 2008
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Rafe,
Can you confirm that behavior on missing end-of-line is indeed your
issue? Note that at first I could not even reproduce the problem based
on your report.
I am attaching a proof-of-concept patch that would arguably improve the
inspect module by making it more robust in your case.
Note that it is unlikely that a fix along the lines of my patch will be
considered for bug-fix releases of 2.5.x and 2.6.x series. If you want
an immediate solution, you have a better chance convincing Komodo
developers to fix their text editor (emacs' python mode auto-terminates
the last line in .py files.)
----------
keywords: +patch
Added file: http://bugs.python.org/file12299/inspect.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4335>
_______________________________________
More information about the Python-bugs-list
mailing list