def __deepcopy__ ( self , memo ) : return type ( self ) ( value = self . _value , enum_ref = self . enum_ref )
python deepcopy basic type
Improve deepcopy speed .
def __deepcopy__(self, memo):
        """Improve deepcopy speed."""
        return type(self)(value=self._value, enum_ref=self.enum_ref)