This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients ammar2, gregory.p.smith, lys.nikolaou, pablogsal
Date 2021-10-16.21:46:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634420793.98.0.416452326301.issue45494@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-10-16 21:46:34gregory.p.smithsetrecipients: + gregory.p.smith, ammar2, lys.nikolaou, pablogsal
2021-10-16 21:46:33gregory.p.smithsetmessageid: <1634420793.98.0.416452326301.issue45494@roundup.psfhosted.org>
2021-10-16 21:46:33gregory.p.smithlinkissue45494 messages
2021-10-16 21:46:33gregory.p.smithcreate