Remove binding of captured exceptions when not used to reduce the chances of creating cycles (GH-17246)
Capturing exceptions into names can lead to reference cycles though the __traceback__ attribute of the exceptions in some obscure cases that have been reported previously and fixed individually. As these variables are not used anyway, we can remove the binding to reduce the chances of creating reference cycles. See for example GH-13135
P
Pablo Galindo committed
293dd23477eef6e7c1b1e26b5bb2c1e0d79ac3c2
Parent: c6b20be
Committed by GitHub <noreply@github.com>
on 11/19/2019, 9:34:03 PM