python-rope / ropevim

vim mode that uses rope library to provide features like python refactorings and code-assists
GNU General Public License v2.0
249 stars 34 forks source link

Go to definition cannot handle fun(imported_name=imported_name) #8

Closed mcepl closed 9 years ago

mcepl commented 11 years ago

In following example ropevim cannot handle jumping to bar definition inside foo module:

#!python
from foo import bar
def (bar=bar): # place cursor on "bar" after "="
    pass

... but if I do:

#!python
from foo import bar
def (bar_=bar): # place cursor on "bar" after "="
    pass

...jumping to defintion works fine.

mcepl commented 9 years ago

function without name? Is it even legal Python?