What does [...] mean?

Jeff Epler jepler at unpythonic.net
Tue Oct 26 21:51:49 EDT 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.sig>


More information about the Python-list mailing list