Re: [Numpy-discussion] attribute names on record arrays

2007-06-15 Thread Tom Denniston
One thing I've done in situations like this where you want names of dynamic fields to be available for tab completion but the object has other methods and instance variables that might conflict is to use a proxy object that just contains the fields. So for instance you have a property called F tha

Re: [Numpy-discussion] attribute names on record arrays

2007-06-13 Thread Travis Oliphant
John Hunter wrote: >I fund myself using record arrays more and more, and feature missing >is the ability to do tab completion on attribute names in ipython, >presumably because you are using a dict under the hood and __getattr__ >to resolve > >o.key > >where o is a record array and key is a field

[Numpy-discussion] attribute names on record arrays

2007-06-13 Thread John Hunter
I fund myself using record arrays more and more, and feature missing is the ability to do tab completion on attribute names in ipython, presumably because you are using a dict under the hood and __getattr__ to resolve o.key where o is a record array and key is a field name. How hard would it be