What I'm wondering about is whether we can start having namespaces in 
Cython/Includes. Especially since math is already a module, and I think 
"c.math" is clearer than inventing "cmath".

So I propose:

from c.math cimport sqrt, acos, cos, sin, round
from c.stdio cimport fopen

and so on (though stdlib.pxd and stdio.pxd will be kept in place for 
backwards compatability).

This leaves room for

from c99.math cimport ...
from cpp.vector cimport ...

and perhaps also

from cpython.exc cimport ... # same as cimport python_exc

Thoughts?

Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to