Xinmeng Xia <[email protected]> added the comment:
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
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42813>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com