On Wed, May 8, 2013 at 12:12 AM, Shriramana Sharma <
sam...@gmail.com> wrote:
> I always wondered why you people never chose to give Cython files a
> different extension based on "Cy".
module.cy etc would have been
> totally cool IMO. Since Cython is not Pyrex, although it may have been
> derived from it, is there a reason that .cy wasn't chosen?
The .cy extension was actually considered, but there really wasn't a
compelling reason to change. Especially back when Pyrex and Cython
were nearly interchangeable (and still most Pyrex code is valid Cython
code, the biggest difference being in how C++ declarations are
handled).
Personally, I think of .pyx being a variant of .py rather than a take
on Pyrex, and listing "*.p*" or "*.py*" is a handy thing to be able to
do. There's already a lot of .pyx files out there, I worry that .cy
may cause confusion (though certainly something to consider if we want
to make backwards incompatible changes to the syntax).
- Robert