def make(meta, names, name='SimpleEnum'):
        """Return a new Enum subclass based on the passed names."""
        if isinstance(names, str):
            names = names.replace(',', ' ').split()
        else:
            names = list(map(str, names))

        ns = _EnumNamespace()
        ns._names = names
        return meta(name, (Enum,), ns)
Return a new Enum subclass based on the passed names.
recipes/Python/578455_A_simple_enum_type/recipe-578455.py