On Oct 29, 2009, at 12:31 PM, Sebastien Binet wrote:

> hi there,
>
> I have some freecycles these days and I was wondering if I couldn't  
> dive a
> little bit more into cython's codebase.
>
> my pet peeve would be to add some more user friendly module support  
> in cython,
> so one could write:
>
> # mymodule.pyx
> __all__ = [ 'fct1', 'fct2', 'cls1', 'obj', ]
> # definitions follow
> # EOF
>
> and be able to cimport those in various other cython modules,  
> instead of
> having to create .pxd and .pyx files.
>
> so, where should I start ?

That is a highly requested feature, even without the __all__. To start  
I would look at find_module in Main.py, and change it to look for .pyx  
files if the search for .pxd files failed. There may or may not be  
other changes that are needed, but that's where to start.

- Robert


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

Reply via email to