[New-bugs-announce] [issue14697] parser module doesn't support set displays or set comprehensions
Mark Dickinson
report at bugs.python.org
Sun Apr 29 23:44:58 CEST 2012
New submission from Mark Dickinson <dickinsm at gmail.com>:
>>> parser.tuple2st(parser.expr('{2}').totuple())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
parser.ParserError: could not validate expression tuple
[70677 refs]
>>> parser.tuple2st(parser.expr('{x**2 for x in [1, 2, 3]}').totuple())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
parser.ParserError: could not validate expression tuple
[70677 refs]
This seems to be already fixed in Python 2.7.
----------
components: Library (Lib)
messages: 159656
nosy: mark.dickinson
priority: normal
severity: normal
stage: needs patch
status: open
title: parser module doesn't support set displays or set comprehensions
type: behavior
versions: Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14697>
_______________________________________
More information about the New-bugs-announce
mailing list