A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-May/140083.html below:

[Python-Dev] Enable access to the AST for Python code

[Python-Dev] Enable access to the AST for Python code [Python-Dev] Enable access to the AST for Python codeEthan Furman ethan at stoneleaf.us
Fri May 22 02:12:08 CEST 2015
On 05/21/2015 04:33 PM, Greg Ewing wrote:
> Steve Dower wrote:
>>
>> 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.
>
> Is it really that much different? The end result is
> the same -- the user writes something that looks like
> a Python expression, but it gets evaluated using some
> other set of semantics that can be arbitrarily different
> from Python's.

I think the key difference is that the AST is not going to be converted to run different Python code under Python, but under some other language -- presumably to implement the semantics of the Python 
snippet.

--
~Ethan~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4