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
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
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