[issue42813] Extra spaces cause unexpected EOF error in "compile" function with mode "single"

2021-09-29 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42813] Extra spaces cause unexpected EOF error in "compile" function with mode "single"

2021-09-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I concur with Terry, ending a file with *is* a syntax error. -- ___ Python tracker ___

[issue42813] Extra spaces cause unexpected EOF error in "compile" function with mode "single"

2021-09-29 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg402911 ___ Python tracker ___ ___ Python-bugs-list

[issue42813] Extra spaces cause unexpected EOF error in "compile" function with mode "single"

2021-09-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I concur -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42813] Extra spaces cause unexpected EOF error in "compile" function with mode "single"

2021-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe that this should be closed as not-a-bug. Ending a file with *is* a syntax error. Previous, it was assumed that the problem, in retrospect, was the 'extra' indent. But one can equally say that the problem is the 'missing' statement after the

[issue42813] Extra spaces cause unexpected EOF error in "compile" function with mode "single"

2021-07-04 Thread Xinmeng Xia
Xinmeng Xia 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")

[issue42813] Extra spaces cause unexpected EOF error in "compile" function with mode "single"

2021-01-03 Thread Xinmeng Xia
New submission from Xinmeng Xia : Running the following program will lead to an unexpected EOF error. If we delete the space before triple-quotation mark("""), the error will gone. If we replace the content of snippet with "a = 1", the program will work well. However, if we replace the