Showing the method's class in expection's traceback

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sun May 25 14:51:01 EDT 2008


En Sun, 25 May 2008 06:15:45 -0300, Duncan Booth <duncan.booth at invalid.invalid> escribió:
> "Gabriel Genellina" <gagsl-py2 at yahoo.com.ar> wrote:
>> En Thu, 22 May 2008 07:55:44 -0300, Duncan Booth
>> <duncan.booth at invalid.invalid> escribió:
>>>
>>> It might be worth considering an alternative approach here: a
>>> formatted exception includes the relevant source lines (where
>>> possible).
>>
>> Just to note that the standard cgitb module already does that, among
>> other things.
>>
> Anywhere Python prints a traceback already does that. The 'alternative
> approach' I was suggesting was the part you snipped, i.e. extracting the
> enclosing class name from the source.

Ah, sorry for the misunderstanding!

-- 
Gabriel Genellina




More information about the Python-list mailing list