[Cython] Should we optimise certain stdlib modules?

Stefan Behnel stefan_ml at behnel.de
Tue Jul 7 15:07:30 CEST 2009


Dag Sverre Seljebotn wrote:
> But (expert) users must have control and care about this, it cannot 
> happen behind the scenes anyway! I.e. with no automatic cimport, you can do
> 
> import itertools
> 
> ...
> 
> itertools = None
> ...

Isn't that easily caught by traversing the syntax tree for global
assignments to (or re-imports of) "itertools"? That's the same problem as
writing

	list = None

in my source.

Stefan



More information about the Cython-dev mailing list