Brett,
> AttributeError: 'vector<string>' object has no attribute 'at'
>
> Is this some extension to the C++ stdlib? I don't find it in the STL
> docs (the ones from SGI).
No, it's standard C++. Difference between at() and operator(int)[] is that
the former is range checked.
> What would be totally great is if the wrapped STL containers (and for
> that matter, ROOT ones as well) acted like native Python containers.
This is already there for TSeqCollection deriveds, such as TList, as well
as TLeaf classes that represent arrays (since a few days; you can access
leaves of a tree by accessing them as data members). I haven't done TArray
yet (coming soon ...). The plan is to do the same for STL classes.
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