def __init__(self, *enums, **kw):

        values, objects = self._parse_into_values(enums, kw)
        self._setup_for_values(values, objects, kw)

        self.native_enum = kw.pop('native_enum', True)
        convert_unicode = kw.pop('convert_unicode', None)
        self.create_constraint = kw.pop('create_constraint', True)
        if convert_unicode is None:
            for e in self.enums:
                if isinstance(e, util.text_type):
                    convert_unicode = True
                    break
            else:
                convert_unicode = False

        if self.enums:
            length = max(len(x) for x in self.enums)
        else:
            length = 0
        self._valid_lookup[None] = self._object_lookup[None] = None

        String.__init__(self,
                        length=length,
                        convert_unicode=convert_unicode,
                        )
        SchemaType.__init__(self, **kw)
Construct an enum.
dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/sql/sqltypes.py/Enum.__init__