[Cython] [cython-users] Conditional import in pure Python mode
Stefan Behnel
stefan_ml at behnel.de
Mon Apr 30 15:55:18 CEST 2012
mark florisson, 30.04.2012 15:24:
> So lets assume we want to use the following syntax: stdio =
> cython.cimport_module("libc.stdio").
>
> In the TransformBuiltinMethods you add another case to the
> visit_SimpleCallNode
That seems way too late in the pipeline to me (see Pipeline.py). I think
this is better (although maybe still not perfectly) suited for
"InterpretCompilerDirectives".
> we probably want to formally discuss the exact syntax and semantics
> before implementing it, so I think it will be a good idea to summarize
> what you want and how you want it on the cython-dev mailing list.
Absolutely.
Stefan
More information about the cython-devel
mailing list