def _copy(cls, obj):
            """Copy the dictionnary of obj in an new instance of cls.
            """
            tmp = object.__new__(cls, cls.__name__, cls.__bases__, cls.__dict__)
            tmp.__dict__.update(obj.__dict__)
            return tmp
Copy the dictionnary of obj in an new instance of cls.
            
recipes/Python/521879_An_objectoriented_enum_Javalike/recipe-521879.py