[Python-Dev] Comparison speed

Guido van Rossum guido@digicool.com
Tue, 15 May 2001 17:41:12 -0500


I'm curious where the frequent comparisons of types come from.

Is there lots of code that does frequent

    assert type(x) == T

typechecking?

Does isinstance(x, T) perhaps use EQ?

--Guido van Rossum (home page: http://www.python.org/~guido/)