From: Francesc A. <fa...@ca...> - 2004-12-11 11:57:00
|
A Divendres 10 Desembre 2004 15:42, Norbert Nemec va escriure: > OK, doing a quick grep through the sources, I realize that there is quite= some=20 > work to do. I don't know enough about the general state of exceptions in= =20 > pytables to really estimates what has to be done. I would suggest that th= e=20 > better solution than "abusing" KeyError, LookupError and NameError would = be=20 > to define new exceptions somewhere (NodeError was suggested by Ivan, mayb= e=20 > additional ones unless you want to merge all node-errors together) and do= a=20 > plain search and replace. With NodeError inheriting AttributeError, this= =20 > would have the immediate advantage of fixing hasattr (which should defini= tely=20 > work for nodes as well, since they are defined using __setattr__/__getatt= r__) Good enough. So let's work on implementing a NodeError exception first in order to solve those inconsistencies and then progressing towards a better exception system.=20 If you are willing to plan that, no problem :) Otherwise, I'll try myself to carry out the job. Cheers, =2D-=20 =46rancesc Altet Who's your data daddy? =A0PyTables |