[Python-Dev] PEP 435 - ref impl disc 2
Ethan Furman
ethan at stoneleaf.us
Sun May 5 15:07:55 CEST 2013
class NEI( NamedInt, Enum ):
x = NamedInt('the-x', 1 )
y = NamedInt('the-y', 2 )
@property
def __name__(self):
return self.value.__name__
More information about the Python-Dev
mailing list