Circular Reference with python lists -


can explain this?

>>> x=x[0]=[0] >>> x [[...]] >>> x x[0] true >>> x[0][0][0][0][0][0][0] [[...]] >>> x in x true 

what [...]?

that's python telling you have circular reference; it's smart enough not enter infinite loop trying print out.


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -