On Wed, Oct 19, 2011 at 22:26, Gael Varoquaux <[email protected]> wrote: > On Wed, Oct 19, 2011 at 06:25:03PM +0100, Brian Holt wrote: >> We've had a number of discussions on cython types, and how we wish that >> cython would support some sort of templates. This would be very useful >> for the `tree` module (that is currently tied to a 32bit implementation) >> and a number of other modules. > >> [Ralf Gommers]: scipy.interpolate has Cython code with simple Mako >> templating, look at interpnd.pyx and generate_interpnd.py. If it's >> flexible enough for your needs then it'll be a lot more pleasant than >> using C++. > > While I think that this is a perfectly valid route: using some simple > templating engine, I am wondering if the dependency on Mako is really > necessary. Numpy has a similar mechanism, though probably not as pretty. > It can be found in numpy.distutils.conv_template. It's very rough, but it > may suit our needs without adding a dependency.
I recommend Tempita, a tiny but well-featured templating engine that can be dropped into your codebase: http://pythonpaste.org/tempita/ -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Ciosco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
