4 Sep
2007
4 Sep
'07
9:42 p.m.
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