[Tutor] array module

Alan Gauld alan.gauld at yahoo.co.uk
Thu Oct 14 04:22:27 EDT 2021


On 14/10/2021 00:06, Finn Mason wrote:
> array.array() is very limited in what it can do. Honestly, I'm not sure why
> it's in the standard library when NumPy is so popular it can practically be
> considered a core library.
> Check out NumPy for arrays of numbers.

Because array has been around forever, much longer than numpy.

Also numpy is huge. If you just want an array, using numpy would
be like buying a swiss army knife because you wanted a nail file.

But personally, I've only used array once, mostly a regular
Python list does all that I need.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list