"Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Thu, 22 May 2008 07:55:44 -0300, Duncan Booth > <[EMAIL PROTECTED]> escribió: >> Bruno Desthuilliers <[EMAIL PROTECTED]> >> wrote: >> >>> Not to say that your concerns are pointless, and that things cannot >>> be improved somehow, but this is not that trivial, and there may be >>> ambuiguities in some not so rare cases. >> >> 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. -- http://mail.python.org/mailman/listinfo/python-list