[issue25621] ast.literal_eval() fails on docstrings

SilentGhost report at bugs.python.org
Fri Nov 13 15:41:38 EST 2015


SilentGhost added the comment:

It doesn't seem docstring-specific, docstring is a regular Python object and ast.literal_eval would fail if you have more than one literals of any kind. Put two integers in your file and the literal_eval will fail.

----------
nosy: +SilentGhost, benjamin.peterson, georg.brandl

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


More information about the Python-bugs-list mailing list