On Mon, Apr 29, 2013 at 12:52 PM, Oscar Benjamin <oscar.j.benja...@gmail.com> wrote: > 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) _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com