Message388194
> "If mode is 'repl', compile returns None to indicate that the code is incomplete as is but might become valid if more lines (or maybe just more code) were added"
That would be ideal, but my guess is that is not trivial because even if you can intercept the tokenizer when it fetches new lines from the source, you need to correctly propagate that information through several tokenized layers and the parser trying to backtrack.
If someone manages to do that, that would be the cleanest solution. |
|
Date |
User |
Action |
Args |
2021-03-06 03:50:20 | pablogsal | set | recipients:
+ pablogsal, gvanrossum, terry.reedy, aroberge |
2021-03-06 03:50:20 | pablogsal | set | messageid: <1615002620.01.0.20585126487.issue43366@roundup.psfhosted.org> |
2021-03-06 03:50:20 | pablogsal | link | issue43366 messages |
2021-03-06 03:50:19 | pablogsal | create | |
|