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

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -