Message404117
I confirmed that 3.9 does NOT seem to have the problem:
Python 3.9.5 (default, May 19 2021, 11:32:47)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> x = r'''
... "\
... "(1for c in I,\
... \ '''
>>> import ast
>>> ast.literal_eval(x)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.9/ast.py", line 62, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/usr/lib/python3.9/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
File "<unknown>", line 3
"\
^
SyntaxError: Generator expression must be parenthesized |
|
Date |
User |
Action |
Args |
2021-10-16 21:46:34 | gregory.p.smith | set | recipients:
+ gregory.p.smith, ammar2, lys.nikolaou, pablogsal |
2021-10-16 21:46:33 | gregory.p.smith | set | messageid: <1634420793.98.0.416452326301.issue45494@roundup.psfhosted.org> |
2021-10-16 21:46:33 | gregory.p.smith | link | issue45494 messages |
2021-10-16 21:46:33 | gregory.p.smith | create | |
|