On Feb 2, 2010, at 1:45 AM, Dag Sverre Seljebotn wrote:

> What I'm wondering about is whether we can start having namespaces in
> Cython/Includes.

Yes.

> 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 ...

or maybe from stl.vector cimport ... would be more natural

>
> and perhaps also
>
> from cpython.exc cimport ... # same as cimport python_exc

I don't know that we need to preface python with a c here.

- Robert


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

Reply via email to