Spaces around "=" disables completion

Bug #418538 reported by Eric O LEBIGOT (EOL)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IPython
Fix Committed
Undecided
Unassigned

Bug Description

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]: wxcv = 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.

description: updated
Revision history for this message
Fernando Perez (fdo.perez) wrote :

This is now fixed in trunk:

In [5]: hist = 123

In [6]: hist=hi
%hist %history hist

In [6]: hist = hi
%hist %history hist

Tab completed both with and without the spaces.

Changed in ipython:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.