[issue29646] ast.parse parses string literals as docstrings

ProgVal report at bugs.python.org
Sat Feb 25 05:13:15 EST 2017


ProgVal added the comment:

(Oops, submitted too soon.)

I understand the rational of this change, so I am not sure if this is actually a bug.

However, if someone wants to parse a simple expression that may be a string, they need to add a special handling in case it's a string interpreted as a module docstring.

----------

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


More information about the Python-bugs-list mailing list