What could prevent a traceback from being garbage collected?
问题 I can't show much code, but see this sample: class Product(metaclass=abc.ABCMeta): __attributes__ = [] __special_attributes__ = [] __json_additional_attributes__ = [] def __init__(self, original_object): for attribute in [c_attr for c_attr in self.__attributes__ if c_attr not in self.__special_attributes__]: try: if hasattr(original_object, attribute): # ... elif original_object.IsAttributeUsed(attribute): # RAISES HERE - this is a clr binding # ... except Exception as err: print('cant