Infinitely nested containers

Marko Rauhamaa marko at
Fri Nov 21 08:00:15 CET 2014

Gill Shen <gillarete at>:

> How is this [nesting] behavior implemented under the hood?


> And why is this allowed at all?

There's no reason not to.

> Is it just a curiosity or can you do something useful with it?

It absolutely does arise every here and there. It's so natural you don't
even pay attention to it.


More information about the Python-list mailing list