[Python-Dev] Enable access to the AST for Python code (original) (raw)
Steve Dower Steve.Dower at microsoft.com
Thu May 21 15:05:29 CEST 2015
- Previous message (by thread): [Python-Dev] Enable access to the AST for Python code
- Next message (by thread): [Python-Dev] Enable access to the AST for Python code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
From: Greg Ewing<mailto:greg.ewing at canterbury.ac.nz> Sent: 5/20/2015 22:33 To: Python-Dev<mailto:python-dev at python.org> 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 at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20150521/5c3f8580/attachment.html>
- Previous message (by thread): [Python-Dev] Enable access to the AST for Python code
- Next message (by thread): [Python-Dev] Enable access to the AST for Python code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]