On Wed, Aug 5, 2020 at 11:41 AM Marco Sulla <marco.sulla.pyt...@gmail.com>
wrote:

> On Wed, 5 Aug 2020 at 15:53, Ricky Teachey <ri...@teachey.org> wrote:
> > How about this?
> >
> > @print(sep="\n")
> > 1, 2, 3
>
> If you consider @print as a function decorator, it's quite a problem.
> But I was thinking mainly about a sort of "decorator" for the parser
> and/or the AST compiler.
> This could allow you to have, for example:
>
> from mypython import *
> @const a = 5
>
> with a C extension.
> More than an idea is a question, since I've no knowledge about AST and
> code parsers.
>

 I'm probably dim but I have no idea what that is supposed to mean or do.
Is this just calling const(a=5)...? what is the point of that?
_______________________________________________
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/V5O3KW2A4VKTVK7KJBEEQ7JTLN2FNDV2/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to