cyclic data structures

Fredrik Lundh fredrik at pythonware.com
Mon Feb 13 16:08:36 EST 2006


John Salerno wrote:

> L.append(L) basically creates this, I think:
>
> [1, 2, L]
>
> Now, assuming that's correct, and since L points to the list [1, 2]

L points to [1, 2, L]

</F>






More information about the Python-list mailing list