Forum Archive

Arrays

misha_turnbull

Something I feel is missing from the Python language is the array data type. I know of the builtin array module but I haven't yet seen it used and having tried it decided I wanted something more akin to the C++ type. So I made this.

https://gist.github.com/080801f5da7cda04cee6

All it really is is a list of lists, with a fancy wrapper and some ways to manipulate said lists. I plan to keep working on this, specifically the .setmultiz method, and will post a release here when I do. Let me know if you fix it before I do (its probable)!

Edit: For some reason a line of code wasnt uploaded to the gist. In the .setmultiz method I included a
raise NotImplementedError('I tried to make this work...but it wouldnt. :(')

sooo....pretend its there. :p

polymerchm

Your should read up on numpy. Its all there and coded efficiently.