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 Phaqui
Recipients Phaqui, gvanrossum
Date 2019-11-07.17:52:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573149175.76.0.612801222166.issue38673@roundup.psfhosted.org>
In-reply-to
Content
As a person without much experience, it sounded like a simple enough task, but having dug a bit, I found it quite complicated. It seems to me that the interpreter loop (in the standard REPL, that you get when you start ./python, blocks for input somewhere inside a massive function called 'parsetok' (in Parser/parsetok.c). Now, I could maybe investigate further, to have it return to the interpreter loop if it reads a comment (or empty line), but I'm afraid to mess up something.

From my understanding, there aren't that many other choices, because parsetok() doesn't return before you finish the statement (in other words, it does not return if you type a comment line or a blank line - it instead waits for more input, as indicated by the '... ').

Am I way off in concluding that this would be a change to the parser?
History
Date User Action Args
2019-11-07 17:52:55Phaquisetrecipients: + Phaqui, gvanrossum
2019-11-07 17:52:55Phaquisetmessageid: <1573149175.76.0.612801222166.issue38673@roundup.psfhosted.org>
2019-11-07 17:52:55Phaquilinkissue38673 messages
2019-11-07 17:52:55Phaquicreate