That explains. Unfortunately, it requires that "except java.lang.Throwable" clause is required in addition to generic "except" clause even when I have same code in case of all exceptions (python and java).

Raghu.

ps. I just noticed that Helio R. Zwi didn't reply to the group.

On 9/8/05, Helio R. Zwi <hzwi@comcast.net> wrote:
Raghuram Devarakonda wrote:

>
> Yes, it does work. Thanks a lot for the quick response. Is there any
> reason that traceback.print_exc() doesn't print complete stack trace?
>
> Raghu.
>
> On 9/8/05, *Helio R. Zwi* <hzwi@comcast.net <mailto:hzwi@comcast.net>
> > wrote:
>
>     The following should do the job:
>
>     from java.lang import Throwable
>     import traceback
>     import testje
>     try:
>         t = testje()
>         t.te()
>     except Throwable, e:
>         e.printStackTrace()
>
>
>
>
>> print_exc (and other methods in traceback) work with the /python/ stack
>> trace.  The /Java/ stack trace is a property (actually, a private
>> member) of the java.lang.Throwable instance.