[Python-Dev] very slow compare of recursive objects

Jeff Epler jepler@unpythonic.net
Mon, 20 Jan 2003 10:49:37 -0600


On Mon, Jan 20, 2003 at 04:53:51PM +0100, Martin v. L=F6wis wrote:
> It doesn't: You can't create a tuple that contains itself, except on
> the C level (which I would declare a bug in the C code that does so).
> So any cycle involving a tuple must involve a non-tuple object as
> well.

But a tuple subclass can.  Does the code use PyTuple_Check or
PyTuple_CheckExact?

Jeff