Message356205
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? |
|
Date |
User |
Action |
Args |
2019-11-07 17:52:55 | Phaqui | set | recipients:
+ Phaqui, gvanrossum |
2019-11-07 17:52:55 | Phaqui | set | messageid: <1573149175.76.0.612801222166.issue38673@roundup.psfhosted.org> |
2019-11-07 17:52:55 | Phaqui | link | issue38673 messages |
2019-11-07 17:52:55 | Phaqui | create | |
|