Kurt Smith wrote: > On Thu, Jun 24, 2010 at 12:09 PM, Dag Sverre Seljebotn > <[email protected]> wrote: >> Cython files are called .pyx files for historical reasons: For a long >> time Cython was simply smaller patches on top of Pyrex. This is not >> longer true. I don't believe we would honestly recommend to anyone that >> they maintain codebases that should be buildable on both compilers. >> (That it is easy to convert a Pyrex project to a Cython project is >> another story.) >> >> While the .pyx extension will obviously stick with us for many years to >> come, I'm proposing that we add support for a .cy extension as well, and >> change the documentation to use this. They'll be completely >> interchangeable, almost nothing in the Cython codebase should know the >> difference (and I imagine that Sage and lxml would stick to pyx for a >> long time). > > +1 (FWIW). This would definitely make things easier working with > distutils since it assumes '.pyx' means Pyrex, as you mention. > > Would .pxd map to .cyd? .pxi -> .cyi?
I think this is much less important as they don't need to be entry points for build tools. But I guess we could just as well support "cyd" (or "cyh"? which seems to be more explanative to me). pxi I think we've pretty much deprecated, but why not.. -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
