What is the command to determine an object's type?

Jason Orendorff jason at jorendorff.com
Wed Feb 6 14:51:48 EST 2002


Gustavo Cordova writes:
> NO NO NO NO NO NO!!!
> 
> **WHY*** do you want to break beautiful OO-code with this?
>
> [...isinstance...]
>
> Alas, I don't have an answer to your question [...]

Okay, the "isinstance() considered harmful" point of view
has officially gone too far.

## Jason Orendorff    http://www.jorendorff.com/




More information about the Python-list mailing list