[Python-Dev] Product function patch [issue 1093]

"Martin v. Löwis" martin at v.loewis.de
Tue Sep 4 23:42:27 CEST 2007


> What I have in mind would be quite small, so it wouldn't
> "weigh down" the stdlib.

If it's a builtin, it certainly would. Every builtin weighs
down the library, as it clutters the global(est) namespace.

> I'm thinking of having a bunch of functions like
> 
>    add_elementwise(src1, src2, dst, start, chunk, stride)
> 
> where src1, src2 and dst are anything supporting the
> new buffer protocol. That should be sufficient to support
> something with a numpy-like API, I think.

This sounds like a topic for python-ideas.

Regards,
Martin


More information about the Python-Dev mailing list