#304 Python class member function recognized as common function

open-fixed
nobody
None
5
2011-06-15
2011-01-31
zhang nan
No

In the following code, func2() is recognized as a common function (f), not a class member (m).
This is caused by the indentation of the comment (second line) in func1().

================
class A:
def func1():
"""this is
a comment""" # this line causes trouble
pass

def func2():
pass
================

ctags: 5.8
platform: Linux, WinXP

Discussion

  • zhang nan

    zhang nan - 2011-01-31
     
    Attachments
  • Elias Pschernig

    Elias Pschernig - 2011-06-15

    Thanks, should be fixed in SVN as of revision 775.

     
  • Elias Pschernig

    Elias Pschernig - 2011-06-15
    • status: open --> open-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks