On 18/08/20 5:39 pm, Marco Sulla wrote:
The new `@const` will be added as a hook to the PEG parser. if the PEG parser finds a `@const`, it will invoke the miniparser of `mykeywords` module inherent to `@const`.
I don't think this is likely to be accepted into the language. Guido has always been against any form of programmable syntax. There are third party tools such as Macropy for those who want to do this kind of thing. -- Greg _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/PAEJCQOP5LH2QFG3YC2K4ATUZ65YE5M3/ Code of Conduct: http://python.org/psf/codeofconduct/