From: Ivan V. i B. <iv...@ca...> - 2004-12-09 23:23:52
|
On Thu, Dec 09, 2004 at 08:34:07PM +0100, Francesc Altet wrote: > [...] > It just happens that "fileh.root.table" is > the way that PyTables has chosen to specifiy a node in the object tree (t= he > so-called "natural naming"). This is why I think there is an intrinsic > difference between a "node" and an "attribute", and why they should be > treated differently (even raise different exceptions). However, at a Python level, nodes are accessed as attributes (or members), so the right exception should be AttributeError. If we want to give this kind of access an additional meaning in PyTables, then maybe a new subclass of AttributeError (e.g NodeError) should be defined and used instead. In addition, this would not break compatibility with existing code where AttributeError was caught. Well, this is just an alternative. Bye! --=20 Ivan Vilata i Balaguer >qo< http://www.carabos.com/ C=E1rabos Coop. V. V V Enjoy Data "" |