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 xxm
Recipients xxm
Date 2021-07-05.04:50:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625460610.18.0.764595909232.issue42813@roundup.psfhosted.org>
In-reply-to
Content
Program like following reports error on CPython(master branch), however this program can work well on PyPy. I think this is a bug in CPython
==============================
string ="""
if 1:
    print("hello")
    """
compile(string, "", "single")
==============================

Traceback (most recent call last):
  File "/home/xxm/Desktop/IFuzzer/test/test1.py", line 304, in <module>
    compile(string, "", "single")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "", line 4
    
SyntaxError: unexpected EOF while parsing
History
Date User Action Args
2021-07-05 04:50:10xxmsetrecipients: + xxm
2021-07-05 04:50:10xxmsetmessageid: <1625460610.18.0.764595909232.issue42813@roundup.psfhosted.org>
2021-07-05 04:50:10xxmlinkissue42813 messages
2021-07-05 04:50:10xxmcreate