[issue4335] inspect.getsourcelines ignores last line in module

2008-12-08 Thread Rafe Sacks
Rafe Sacks <[EMAIL PROTECTED]> 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 Ko

[issue4335] inspect.getsourcelines ignores last line in module

2008-11-17 Thread Rafe Sacks
New submission from Rafe Sacks <[EMAIL PROTECTED]>: Hi, If the last line of the function is also the last line of the module, it is ignored. To repro: 1) Create module 'repro' def test(): module_line_2 = None module_line_3 = None module_line_4 = None module_l

[issue1309567] linecache module returns wrong results

2008-11-16 Thread Rafe Sacks
Rafe Sacks <[EMAIL PROTECTED]> added the comment: This seems related to http://bugs.python.org/issue1218234 as well. This is my first bug report. I hope I do this right. I posted this to comp.lang.python and was directed here. Here is a chopped paste of that post: I am getting an error o