isA function?

Afonso Fernandez Nogueira spam at aturuxo.net
Sun Jul 14 07:00:59 EDT 2002


> We're writing some unit tests, and one of the tests is "foo() returns 
> something which isA (bar)".

I read this yesterday, and I think it could be an interesting reading about the mentioned builtin.

"isinstance() considered harmful":
http://www.mail-archive.com/kragen-tol@canonical.org/msg00007.html


fonso






More information about the Python-list mailing list