[Numpy-discussion] Questions on error handling/refcounting in some ufunc object loops.

Robert Kern robert.kern at gmail.com
Fri Nov 14 01:50:47 EST 2008


On Fri, Nov 14, 2008 at 00:39, Charles R Harris
<charlesr.harris at gmail.com> wrote:
> 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
> obscure.

Ah, the T-word.  :-)

Have you taken a look at Tempita?

  http://pythonpaste.org/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.

-- 
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



More information about the NumPy-Discussion mailing list