Steven D'Aprano wrote:
I don't think iscallable will work, since that descriptors like staticmethod and classmethod aren't callable. Nor are properties.
Hmmm, maybe we should look for a __get__ method as well? Enums of descriptors would seem to fall into the seriously-weird category as well. Or if, as Guido says, the only sensible things to use as enum values are ints and strings, just leave anything alone that isn't one of those. -- Greg _______________________________________________ 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