[Python-ideas] PEP 511: API for code transformers

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Jan 29 17:02:17 EST 2016


Sven R. Kunze wrote:
> On 29.01.2016 01:27, Greg Ewing wrote:
> 
>> It occurs to me that a magic import for applying local
>> transformations could itself be implemented using a
>> global transformer.

To elaborate on that a bit, something like an __extensions__
magic import could first be prototyped as a global
transformer. If the idea caught on, that transformer
could be made "official", meaning it was incorporated
into the stdlib and applied by default.

-- 
Greg


More information about the Python-ideas mailing list