Re: [ROOT] PyROOT and STL containers.

From: WLavrijsen@lbl.gov
Date: Mon Nov 01 2004 - 22:16:23 MET


Brett,

> print vs
> <__main__.vector<string> object at 0x41d1124c>
> print vs.size()
> 37
> print vs[0]
>  *** Break *** illegal instruction

This particular issue is more trivial, actually. In ROOT.py, I use the module
string. The return of vs[0] is of class string. The two clash.

In your ROOT.py, change:

 import string

to:

 import string as pystring

and then change "string" to "pystring" throughout ROOT.py. That'll fix it.

Will appear in CVS in the next few days (there are some other details that
need be worked out).

Best regards,
           Wim
-- 
Wim.Lavrijsen@cern.ch   --   WLavrijsen@lbl.gov   --   www.lavrijsen.net

"Stop making excuses for your software."    --first step towards quality



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET