[Python-ideas] PEP 511: API for code transformers
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Jan 28 19:27:26 EST 2016
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.
--
Greg
More information about the Python-ideas
mailing list