inspect getsource() minor fix?

Ron Adam rrr at
Tue Sep 20 02:44:58 CEST 2005

Delaney, Timothy (Tim) wrote:

> Ron Adam wrote:
>>While playing around with the inspect module I found that the
>>Blockfinder doesn't recognize single line function definitions.
>>Adding the following two lines to it fixes it, but I'm not sure if it
>>causes any problems anywhere else.
>>     elif self.indent == 0:
>>         raise EndOfBlock, self.last
> Please raise this as a bug report (with the patch) on Sourceforge, or it
> almost certainly won't be fixed.
> Tim Delaney

I will, I tried earlier today and recieved a site down for maintinance 


More information about the Python-list mailing list