[Python-ideas] PEP 511: API for code transformers
Sven R. Kunze
srkunze at mail.de
Fri Jan 29 13:09:47 EST 2016
On 29.01.2016 01:27, Greg Ewing wrote:
> Sven R. Kunze wrote:
>> Some people proposed a "from __extensions__ import my_extension";
>> inspired by __future__ imports, i.e. it is forced to be at the top.
>> Why? Because it somehow makes sense to perform all transformations
>> the first time a file is loaded.
>
> It occurs to me that a magic import for applying local
> transformations could itself be implemented using a
> global transformer.
>
That is certainly true. :)
More information about the Python-ideas
mailing list