[Numpy-discussion] Questions on error handling/refcounting in some ufunc object loops.
Fri Nov 14 00:50:47 CST 2008
On Fri, Nov 14, 2008 at 00:39, Charles R Harris
> BTW, David, would you mind if I moved the rest of the function definitions
> into math_c99? I would like to separate the loops from the functions. It
> might also be nice to have a template somewhere to combine all the code
> pieces. Having includes scattered here and there through the code is a bit
Ah, the T-word. :-)
Have you taken a look at Tempita?
It's a small, single-file implementation, and its syntax is Djangoish
but it doesn't have some of Django's limitations that make Django
templates awkward for code generation. In particular, you can use
pretty much arbitrary Python in the template and don't have to
register a new tag just to call an arbitrary function. If you want to
use Tempita to redo our code generation, I withdraw my old objections.
"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
More information about the Numpy-discussion