[New-bugs-announce] [issue24146] ast.literal_eval doesn't support the Python ternary operator

Larry Hastings report at bugs.python.org
Fri May 8 15:22:43 CEST 2015


New submission from Larry Hastings:

ast.literal_eval() supports all Python operators, yes?  No.  It doesn't support "if/else", Python's ternary operator.

Is there a reason it does not?  I think it probably should.

----------
messages: 242760
nosy: benjamin.peterson, georg.brandl, larry
priority: normal
severity: normal
stage: needs patch
status: open
title: ast.literal_eval doesn't support the Python ternary operator
type: behavior

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


More information about the New-bugs-announce mailing list