[Cython] [cython-users] Conditional import in pure Python mode

mark florisson markflorisson88 at gmail.com
Mon Apr 30 17:10:31 CEST 2012

On 30 April 2012 14:55, Stefan Behnel <stefan_ml at behnel.de> wrote:
> 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".

Ah good point, it seems to run pretty late. It needs to be before the
declarations are analyzed.

>> 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
> _______________________________________________
> cython-devel mailing list
> cython-devel at python.org
> http://mail.python.org/mailman/listinfo/cython-devel

More information about the cython-devel mailing list