[Cython] Utility Codes and templates

Stefan Behnel stefan_ml at behnel.de
Fri Jul 22 19:04:27 CEST 2011

Hoyt Koepke, 22.07.2011 18:48:
> I know I'm a little late to the discussion, but I've been meaning to
> ask about a feature like this myself.

It's not exactly a feature, rather an internal developer tool.

That being said, once it's there, it can also form a basis for end users 
who want to do Cython code generation. To make this a feature, we could see 
if we can set up a suitable entry point somewhere, such as a template class 
that we preconfigure for Cython code. However, I guess it would be best to 
see the requirements for that emerge outside of Cython first.

> As a point of information, Mako (http://www.makotemplates.org/) might
> be a bit heavyweight for embedding in cython (I don't know for sure;
> haven't looked at the source).  One
> selling point, however, is that it is already used with cython code in
> scipy (see,
> e.g., https://github.com/scipy/scipy/blob/master/scipy/interpolate/interpnd.pyx).

Well, SciPy isn't a dependency of Cython either, so I think that doesn't 
count much.


More information about the cython-devel mailing list