bpo-29587: Update gen.throw() to chain exceptions (#19823)
Before this commit, if an exception was active inside a generator when calling gen.throw(), that exception was lost (i.e. there was no implicit exception chaining). This commit fixes that by setting exc.__context__ when calling gen.throw(exc).
C
Chris Jerdonek committed
02047265eb83a43ba18cc7fee81756f1a1a1f968
Parent: f40bd46
Committed by GitHub <noreply@github.com>
on 5/2/2020, 1:14:19 AM