Infinitely nested containers

random832 at random832 at
Fri Nov 21 18:50:03 CET 2014

On Fri, Nov 21, 2014, at 12:47, Chris Angelico wrote:
> You can do it in C, I believe - PyTuple_New() followed by
> PyTuple_SetItem(x, 0, x) should do it.

Yeah, that's how I did it. I think python 2 crashed and python 3
didn't... or maybe it was the interactive interpreter that crashed and
calling repr didn't, within the same version - I don't remember that

More information about the Python-list mailing list