Arrays? (Or lists if you prefer)

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


Hakusa at gmail.com 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.

</F>




More information about the Python-list mailing list