[Python-ideas] Proposal: Query language extension to Python (PythonQL)
Chris Angelico
rosuav at gmail.com
Sun Mar 26 22:40:09 EDT 2017
On Mon, Mar 27, 2017 at 12:26 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> It might be possible (or not!) to make the clause-heading words like 'where'
> or 'groupby' (this would have to be one word) recognized as special only in
> the context of starting a new comprehension clause. The precedents for
> 'keyword in context' are 'as', 'async', and 'await'. But these were
> temporary and a nuisance (both to code and for syntax highlighting) and I
> would not be in favor of repeating for this case.
Apologies if it's already been mentioned, but is MacroPy able to do
this without introducing actual language keywords?
ChrisA
More information about the Python-ideas
mailing list