Proposal: add vector arithmetic to array module

Tim Peters tim.one at home.com
Mon Sep 24 15:15:23 EDT 2001


[Paul Rubin, wants array syntax]

> ...
> This should all be pretty simple and not really qualify as bloat.

> ...
> Please suppress the urge to reply "use NumPy".  Numpy is a big package
> that's not part of standard Python, with a lot of PDF documentation
> and most importantly needs to be installed separately.

Use NumPy -- can't be suppressed <wink>.  Why do you think NumPy is a big
package?  Doing this right is neither simple nor lean, and as soon as one
array op is added, the rest are inevitable.

See PEPs 209 (multidimensional arrays), 211 (outer product) and esp. 225
(elementwise operators) for the things of this ilk currently on the table.

short-on-consensus-and-worker-bees-ly y'rs  - tim





More information about the Python-list mailing list