What does Python mean by printing “[…]” for an object reference?

It represents an infinite loop within the structure. An example:

In [1]: l = [1, 2]

In [2]: l[0] = l

In [3]: l
Out[3]: [[...], 2]

l‘s first item is itself. It’s a recursive reference, and so python can’t reasonably display its contents. Instead it shows [...]

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)