Arrays? (Or lists if you prefer)

Fredrik Lundh fredrik at
Mon Oct 23 08:57:49 CEST 2006

Hakusa at wrote:

> Interesting. Could I do . . . let's say
> b = [range(range(3)]
> for a three-dimensional array?

 >>> [range(range(3))]
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
TypeError: range() integer end argument expected, got list.

if your mail program is easier to reach than your Python interpreter 
window, something's wrong with your setup.


More information about the Python-list mailing list