[Cython] Interpretting cython -a

Stefan Behnel stefan_ml at behnel.de
Sat Apr 16 21:13:10 CEST 2011


Stuart Axon, 16.04.2011 19:44:
> Do I want things to be yellower or whiter?

White is C, yellow is Python.


> If I add an annotation and the colours don't change then I guess it's doing
> nothing, right.

You also want to click on the line in question and check the C code before 
an afterwards. If it doesn't change due to a type annotation, it's possible 
that Cython already inferred that type anyway, or that the annotation 
simply doesn't change the code, e.g. due to some other types it interacts with.

Stefan


More information about the cython-devel mailing list