Barry Warsaw wrote:
Why isn't getattr() for lookup by name good enough?
Because it will find things that are not enum items, e.g. '__str__'. -- 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