Infinitely nested containers

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


Gill Shen <gillarete at gmail.com>:

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

Pointers.

> 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.


Marko



More information about the Python-list mailing list