def __str__(self): __instance_brief = None # # self.__class__ value: <class '__main__.ACls'> __cls_str = str(self.__class__) __cls_name = _utils.get_cls_name(cls_str=__cls_str) if __cls_name != "": __instance_brief = f"{__cls_name}()" else: __instance_brief = __cls_str return __instance_brief
def __repr__(self): __cls_str = str(self.__class__) __cls_name = _utils.get_cls_name(cls_str=__cls_str) if __cls_name != "": __instance_info = f"{__cls_name} with " \ f"name={self.name}, " \ f"queue_type={self.queue_instance}, " \ f"value={self.value}" else: __instance_info = __cls_str return __instance_info
def __repr__(self): """ Description: More information (like brief, not detail) about class. Example: BaseRunnableStrategy(persistence=X) :return: """ __instance_brief = None # # self.__class__ value: <class '__main__.ACls'> __cls_str = str(self.__class__) __cls_name = _utils.get_cls_name(cls_str=__cls_str) if __cls_name != "": __instance_brief = f"{__cls_name}() " else: __instance_brief = __cls_str return __instance_brief