[issue29463] Add `docstring` attribute to AST nodes

Serhiy Storchaka report at bugs.python.org
Wed Feb 8 04:00:10 EST 2017


Serhiy Storchaka added the comment:

Support adding tests. Tests should cover all cases: module, class, function, coroutine and check also the first line number.

What is the value of co_firstlineno if the function doesn't have any statements?

    def f():
        '''docstring'''

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29463>
_______________________________________


More information about the Python-bugs-list mailing list