29 Apr
2013
29 Apr
'13
3 p.m.
On Mon, Apr 29, 2013 at 12:52 PM, Oscar Benjamin
Would it not be better to avoid using isinstance() for this?
In a recent thread I explained why using isinstance() is important. It's how we check for every other type, and it would be awlward for type-checking frameworks to have to special-case enums. (When we're not using duck typing.) -- --Guido van Rossum (python.org/~guido)