Python parser in ctags is slightly broken (see http://sourceforge.net/tracker/index.php?func=detail&aid=1856363&group_id=6556&atid=106556 - variables starting with def or classmethod decorators are matched as functions/classes, which is annoying). There is a patch in ctags svn: http://ctags.svn.sourceforge.net/viewvc/ctags/trunk/python.c?r1=629&r2=632&view=patch But it may not apply cleanly to the current stable version of ctgas, so I made my own and verified that it works. Please consider patching current ctags in the tree, because upstream has very long release cycle.
Created attachment 142422 [details, diff] python.c.patch
ctags-5.7-r1 fixes this, thanks for reporting.
(In reply to comment #2) > ctags-5.7-r1 fixes this, thanks for reporting. > Unfortunately the patch in the portage is incorrect - it misses the spaces after def and class, i.e. instead of "def" and "class" the comparisons should be made to "def " and "class ". The effect is that ctags currently cannot recognize functions and classes in python. Simply adding those spaces should solve it. Thanks.
*** Bug 232787 has been marked as a duplicate of this bug. ***
Re-opening wrt comment #3 and bug #232787...
I tested both the version in portage and the version with my original patch. I could confirm that my patch works, and the one in portage doesn't. Please use the *original* patch, and it should be fine.
You are right, the patch in main tree is broken. I took the liberty to fix it, vim guys had half year themselves to do so. Enjoy