What does [...] mean?

C

Charles Hixson

I'm getting a list that I build which when printed is displaying, well,
e.g.:
d = << ['electronic', 'path', 'open', 'for', 'the', 'next', 'reader',
'.', [...], 'Do', 'not', 'remove', 'thi', '.', [...]] >>

Clearly I have a problem with the truncation of the final this, but what
does the internal [...] mean?
It's generated by doing:
print "d = <<", d, ">>"

If it matters, I'm using Python 2.3.4 on Linux.
 
E

Erik Max Francis

Charles said:
Clearly I have a problem with the truncation of the final this, but
what
does the internal [...] mean?
It's generated by doing:
print "d = <<", d, ">>"

If it matters, I'm using Python 2.3.4 on Linux.

It usually means that you have a self-referencing data structure, and so
repr is being kind enough not to recursively display it forever:
[1, 2, [...]]

You haven't given any indication of how d was created, so it's not
really possible to help further than that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,209
Messages
2,571,089
Members
47,687
Latest member
IngridXxj

Latest Threads

Top