(original) (raw)
It's only a macro system when you generate code in unexpected/unobvious places with it. This is more like inspect.getsource(), but going straight to the AST.
Cheers,
Steve
Top-posted from my Windows Phone
Cheers,
Steve
Top-posted from my Windows Phone
From: Greg Ewing
Sent: �5/�20/�2015 22:33
To: Python-Dev
Subject: Re: \[Python-Dev\] Enable access to the AST for Python code
Guido van Rossum wrote:
\> Hey Ben, this is probably a better topic for python-ideas. I'll warn you
\> that a hurdle for ideas like this is that ideally you don't want to
\> support this just for CPython. It's definitely cool though!
This would effectively be a macro system. I thought
your position on macros was that they're uncool?
If you've changed your mind about this, that's cool
too -- just checking.
\--
Greg
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com
\> Hey Ben, this is probably a better topic for python-ideas. I'll warn you
\> that a hurdle for ideas like this is that ideally you don't want to
\> support this just for CPython. It's definitely cool though!
This would effectively be a macro system. I thought
your position on macros was that they're uncool?
If you've changed your mind about this, that's cool
too -- just checking.
\--
Greg
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com