You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it turns out they will not in fact be GC'd, as a function that is handling an exception, if the traceback is assigned to a local variable, will result in a circular reference, This is noted in the official documentation at https://docs.python.org/2/library/sys.html#sys.exc_info, in the Warning and Note blocks, and the above code is the recommended approach. Similar implementations exist in other libraries.
What is the point of these lines:
https://github.com/MindscapeHQ/raygun4py/blob/master/python2/raygun4py/raygunprovider.py#L78-L81
The line that's weird is:
isnt that equivalent to just straight up
delete ...
without the try except?
and why do you even need to delete those local variables, they'll get garbage collected at the interpreter's discretion
The text was updated successfully, but these errors were encountered: