This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Enum(object): | |
def __init__(self, *args, **kwargs): | |
raise NotImplemented | |
class Person(object): | |
gendor = Enum("gendor", fields=("male", "female", "unknown")) | |
def __init__(self): | |
self.gendor = "unknown" |