[IPython-dev] more tab completion issues.

Michael VanLandingham m.vanland at gmail.com
Thu Nov 1 23:25:52 EDT 2007


Yeah after looking at it again, I noticed certain things, like  
__class__, had 4, and not 1, entries in the listing.  It's a bit  
annoying, since with something like numpy's 'array', it'll fill up  
your window with 320+ items.

I thought about debugging it, but I don't know how to intercept the  
'tab' keystroke in the tab completion.

-mvl

On Nov 1, 2007, at 7:59 PM, Boyd Waters wrote:

> I get even more duplicates than that...
> >>> i.__
> Display all 121 possibilities? (y or n)
> i.__abs__           i.__abs__           i.__add__            
> i.__add__           i.__and__           i.__and__
> i.__class__         i.__class__         i.__class__          
> i.__class__         i.__cmp__           i.__cmp__
> i.__coerce__        i.__coerce__        i.__delattr__        
> i.__delattr__       i.__delattr__       i.__div__
> ...
>
> Funny.
>
>
>
> On Nov 1, 2007, at 7:44 PM, Michael VanLandingham wrote:
>
>> Following along the whole rlcompleter/readline/editline thread, I  
>> noticed today that when I do tab completion on a class, I get  
>> everything listed twice.
>> Happens in python and ipython.
>> Example:
>> >>> i = int(5)
>> >>> i
>> 5
>> >>> i.__
>> Display all 121 possibilities? (y or n)
>> i.__abs__           i.__abs__           i.__add__           i.__add__
>> i.__and__           i.__and__           i.__class__          
>> i.__class__
>> ...etc.
>>
>>
>> I don't see duplicates if I do 'dir(i)'
>>
>> Is anyone else seeing this behavior?  Any ideas why?  Something in  
>> the rlcompleter or readline...  Seems to occur with any class.
>>
>>
>> -Michael
>>
>> _______________________________________________
>> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>




More information about the IPython-dev mailing list