[[...]]

Jeff Pinyan jeffp at crusoe.net
Fri Mar 17 09:14:57 EST 2000


[posted & mailed]

On Mar 17, Michal Bozon said:

>>>> a = []
>>>> a.append(a)
>>>> a
>[[...]]
>
># What does it mean?

It's Python's way of saying you have a circular data structure.

>>> foo = [ [1,2,3] ]
>>> foo
[[1, 2, 3]]
>>> foo[0][1] = foo[0]
>>> foo
[[1, [...], 3]]

-- 
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve             japhy at pobox.com
http://www.pobox.com/~japhy/                  http://pinyaj.stu.rpi.edu/
PerlMonth - An Online Perl Magazine            http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc.    http://www.perlarchive.com/




More information about the Python-list mailing list