What does [...] mean?

Jeff Epler jepler at unpythonic.net
Wed Oct 27 03:51:49 CEST 2004


This is a list in which one (or two) of the members is the list itself.

Here's a simple example of such a list:
>>> l = [1, 2, 3]
>>> l.insert(1, l)
>>> l
[1, [...], 2, 3]

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20041026/cfa37207/attachment.pgp>


More information about the Python-list mailing list