[issue29463] Add `docstring` attribute to AST nodes

STINNER Victor report at bugs.python.org
Wed Feb 8 03:08:59 EST 2017


STINNER Victor added the comment:

def func(): "doc" + "string"

Currently (Python 2.7-3.6), func.__doc__ is None. I suggest to add an unit test for this corner case, even if the result is going to change in a near future. We need to "specify" the expected behaviour, and make sure that we get the same result if optimizations are enabled or not.

----------

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


More information about the Python-bugs-list mailing list