class NEI( NamedInt, Enum ):
    x = NamedInt('the-x', 1 )
    y = NamedInt('the-y', 2 )
    @property
    def __name__(self):
        return self.value.__name__

_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to