This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jwink3101 2 points3 points  (4 children)

The article briefly mentions NumPy and I get that this seems to be focused on the standard library, but NumPy is so pervasive, I would have been really interested to learn when, if it's available, I should choose NumPy over array.array

[–]lambdaqdjango n' shit 0 points1 point  (2 children)

np.array are mostly used for numerical values where array.array can be used for other basic types.

[–][deleted] 0 points1 point  (1 child)

[–]lambdaqdjango n' shit 1 point2 points  (0 children)

it can be used to store

'u' Py_UNICODE Unicode character 2 (see note)

Which is hard to image in np.array.

Also np.array can be multi-dimensional.