Infinitely nested containers
random832 at fastmail.us
random832 at fastmail.us
Fri Nov 21 12:50:03 EST 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
well.
More information about the Python-list
mailing list