Comment 0 for bug 418538

Revision history for this message
Eric O LEBIGOT (EOL) (eric-lebigot) wrote :

Hello,

I noticed that completion does not always kicks in when it could:

In [1]: hist = 123
In [2]: hist = hi # PROBLEM: <TAB> does not produce any completion, even if %automagic is off

In [1]: wxcv = 123
In [2]: xwcv = wx # <TAB> works and yield wxcv

In [1]: hist = 123
In [2]: hist=hi # <TAB> works and yields hist, just because there is no space!

Since PEP 8 recommends using spaces around "=", it would be great if "hist = hi<TAB>" worked too!

I'd guess that this is because %hist is a command, but this is inconvenient and surprising (especially since "hist" is a nice name for a histogram :).

Using Python 2.6 and Python 2.5, with iPython 0.10.