[IPython-User] Tab completion doesn't work on class/instance where __getattr__ has been overridden
Jeremy Conlin
jlconlin@gmail....
Wed Mar 2 17:30:31 CST 2011
On Wed, Mar 2, 2011 at 11:15 AM, Jörgen Stenarson
<jorgen.stenarson@bostream.nu> wrote:
> Jeremy Conlin skrev 2011-03-02 15:28:
>> I am using iPython 0.10.1 with Python 2.7.1. I have created a minimal
>> example which is copied below. On my system, iPython does not tab
>> complete the instance of myList.
>>
>> Jeremy
>>
>>
> Your example code seems to work for me on python 2.6.4 and ipython 0.10.1
>
> /Jörgen
>
> C:\python\bugreports>python -m ipython
> Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.10.1 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
>
> In [1]: %run tabcomplete_attr.py
>
> I'm tesing out custom slicing.
>
>
> In [2]: myList.
> myList.__add__ myList.__rmul__
> myList.__class__ myList.__setattr__
> myList.__contains__ myList.__setitem__
> myList.__delattr__ myList.__setslice__
...
It must be some setting on my end then. I tried looking through my
ipythonrc to see what was wrong. I tried changing a few things, but
none of them seemed to work. I guess I just have to live with it.
Thanks, all for your help.
Jeremy
More information about the IPython-User
mailing list