On 22 Ago, 03:11, "Evan Klitzke" <[EMAIL PROTECTED]> wrote:
> On 8/21/07, codesite-noreply <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On 22 Ago, 02:09, "Evan Klitzke" <[EMAIL PROTECTED]> wrote:
> > > On 8/21/07, billiejoex <[EMAIL PROTECTED]> wrote:
>
> > > > Hi there,
> > > > I'm facing a case where
On 8/21/07, codesite-noreply <[EMAIL PROTECTED]> wrote:
> On 22 Ago, 02:09, "Evan Klitzke" <[EMAIL PROTECTED]> wrote:
> > On 8/21/07, billiejoex <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Hi there,
> > > I'm facing a case where I need to get the traceback outptut when
> > > occurring an exception
On 22 Ago, 02:09, "Evan Klitzke" <[EMAIL PROTECTED]> wrote:
> On 8/21/07, billiejoex <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi there,
> > I'm facing a case where I need to get the traceback outptut when
> > occurring an exception.
> > I solved such problem by using traceback module in conjunction wit
On 8/21/07, billiejoex <[EMAIL PROTECTED]> wrote:
> Hi there,
> I'm facing a case where I need to get the traceback outptut when
> occurring an exception.
> I solved such problem by using traceback module in conjunction with
> StringIO:
>
> import StringIO, traceback
> try:
> raise Exception
>
Hi there,
I'm facing a case where I need to get the traceback outptut when
occurring an exception.
I solved such problem by using traceback module in conjunction with
StringIO:
import StringIO, traceback
try:
raise Exception
except:
f = StringIO.StringIO()
traceback.print_exc(file=f)