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 pablogsal
Recipients aroberge, gvanrossum, pablogsal, terry.reedy
Date 2021-03-06.03:50:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615002620.01.0.20585126487.issue43366@roundup.psfhosted.org>
In-reply-to
Content
> "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.
History
Date User Action Args
2021-03-06 03:50:20pablogsalsetrecipients: + pablogsal, gvanrossum, terry.reedy, aroberge
2021-03-06 03:50:20pablogsalsetmessageid: <1615002620.01.0.20585126487.issue43366@roundup.psfhosted.org>
2021-03-06 03:50:20pablogsallinkissue43366 messages
2021-03-06 03:50:19pablogsalcreate