Re: How to call TPyException in Python?

From: <wlavrijsen_at_lbl.gov>
Date: Wed, 4 May 2011 15:59:03 -0700


Akira,

this thread is growing long and many things came up, so I'm taking it one at a time. :) There are some more pbs with exceptions in dictionaries/CINT, so those'll need to be resolved as well along the way.

First this one:

> >>> import ROOT
> >>> e = ROOT.PyROOT.TPyException()

is now fixed in trunk, and a regression test has been written. You'll still see this warning:

> TClass::TClass:0: RuntimeWarning: no dictionary for class exception is available
> TClass::TClass:0: RuntimeWarning: no dictionary for class exception is available

(is to be solved in CINT, I think, b/c there is some form of exception dict available, providing ctor, cctor, dtor, and the what() method ... ).

The class appears to work fine, though, regardless the warning.

Best regards,

            Wim

-- 
WLavrijsen_at_lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
Received on Thu May 05 2011 - 00:59:15 CEST

This archive was generated by hypermail 2.2.0 : Thu May 05 2011 - 11:50:01 CEST