Efficient python 2-d arrays?

Carl Banks pavlovevidence at gmail.com
Mon Jan 17 21:26:14 EST 2011


On Jan 17, 2:20 pm, Jake Biesinger <jake.biesin... at gmail.com> wrote:
> Is there a python standard library way of creating *efficient* 2-dimensional lists/arrays, still allowing me to sort and append?

Without using third party libraries, no not really.  numpy has it
covered so there's not really a lot of demand for it.  If your users
are loading 1.5 GB arrays into memory, it's probably not unreasonable
to expect them to have numpy installed.

Other than that you're probably stuck emulating 2D with the array
module.


Carl Banks



More information about the Python-list mailing list