From: Francesc A. <fa...@py...> - 2004-11-11 10:54:10
|
A Dimecres 10 Novembre 2004 15:55, Norbert Nemec va escriure: > find enclosed two tiny patches: > > * the first to throw an AttributeError on __getattr__ for nonexistant > attributes in AttributeSet. Formerly, the routine returned "None", which is > pretty much against convention in Python and breaks the builtin "hasattr" > routine Ok. I see your point. This will cause a backward-incompatible change, although I think the advantages that will bring would largely compensate that. In addition, I've had to rewrite some internals in PyTables that were based on the former behaviour. But all has been done and committed to CVS. > * the second to correct the behavior for shape=() arrays. These worked fine > before, except for copying of trees. That has been committed too. > PS: In case this list is not the appropriate place for tiny patch submissions, > please point me to the correct address. You can also issue a bug in the PyTables project site: http://sourceforge.net/tracker/?group_id=63486&atid=504144 Do what you want although during this stage of development I would prefer to see the patches and bug reports on this list, so that I can discuss them with you. Thanks for your contribution! -- Francesc Altet |