Re: Showing the method's class in expection's traceback

2008-05-30 Thread Agustin Villena
:59, Bruno Desthuilliers wrote: > Agustin Villena a écrit : > > > > > On May 22, 5:19 am, Bruno Desthuilliers > [EMAIL PROTECTED]> wrote: > >> Agustin Villena a écrit : > > >>>> And not that useful - why would one care about the function being >

Re: Showing the method's class in expection's traceback

2008-05-22 Thread Agustin Villena
On May 22, 5:19 am, Bruno Desthuilliers wrote: > Agustin Villena a écrit : > > >> And not that useful - why would one care about the function being > >> defined in class X or Y when one have the exact file and line ? > > > I have 3 reasons: > > > 1) M

Re: Showing the method's class in expection's traceback

2008-05-21 Thread Agustin Villena
On 20 mayo, 12:10, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 19 May 2008 10:54:05 -0300, Agustin Villena > <[EMAIL PROTECTED]> escribió: > > > On May 18, 4:31 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> Agust

Re: Showing the method's class in expection's traceback

2008-05-21 Thread Agustin Villena
> And not that useful - why would one care about the function being > defined in class X or Y when one have the exact file and line ? I have 3 reasons: 1) My developing time is expended running unit tests and browsing tracebacks to find which is the real problem. Knowing the offender class (inst

Re: Showing the method's class in expection's traceback

2008-05-19 Thread Agustin Villena
On May 18, 4:31 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Agustin Villena schrieb: > > > > > Hi! > > > is there anyway to show the class of amethodin an exception's > > traceback? > > > For example, the next code >

Showing the method's class in expection's traceback

2008-05-18 Thread Agustin Villena
Hi! is there anyway to show the class of a method in an exception's traceback? For example, the next code class Some(object): def foo(self,x): raise Exception(x) obj = Some() obj.foo("some arg") produces the next traceback Traceback (most recent call last): File "", line 231, in