[Python-Dev] iterzip()

Neil Schemenauer nas@python.ca
Wed, 1 May 2002 11:31:05 -0700

Tim Peters wrote:
> How do we know which other objects they refer to?

We call tp_traverse on them.

> How do we know that the
> set of objects they refer to will never change?

The assumption is that if the object doesn't have tp_clear then it's
immutable.  That's a little risky I guess.

> And do we have a reason to believe that any type other than tuples
> makes a lick of difference <wink>?

Probably not.

[train algorithm]
> Try adapting Python to it <wink>.

Can't do it without dropping the reference counting and breaking every
extension module (I least I can't figure out a way).