[issue25335] ast.literal_eval fails to parse numbers with leading "+"
Scott Turner
report at bugs.python.org
Wed Oct 7 11:25:19 EDT 2015
New submission from Scott Turner:
import ast
ast.literal_eval("+3")
Traceback (most recent call last):
[...]
ValueError: malformed string
----------
messages: 252476
nosy: Scott Turner
priority: normal
severity: normal
status: open
title: ast.literal_eval fails to parse numbers with leading "+"
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25335>
_______________________________________
More information about the Python-bugs-list
mailing list