Skip to content

Fix which function logic

Osei Poku requested to merge opoku/python-mode:master into master

updated py-which-def-or-class to work show more consistent and useful results in the mode-line

Consider the following snippet:

1: class A(object):
2:     def a(self):
3:         pass
4:     def b(self):
5:         pass

Previously, a cursor at line 5 would result in A.a.b. This these changes the result is A.b

Merge request reports