Message164206
Patch attached. It basically says:
8<--------------------------------------------------------------------
Note: Because using :keyword:`from` can throw away valuable debugging information, its use with a bare :keyword:`raise` is not supported. If you are trying to do this:
try:
some_module.not_here()
except NameError:
try:
backup_module.not_here()
except NameError:
raise from None # suppress context in NameError
do this instead:
try:
some_module.not_here()
except NameError:
try:
backup_module.not_here()
except NameError as exc:
raise exc from None # suppress context in NameError
8<-------------------------------------------------------------------- |
|
Date |
User |
Action |
Args |
2012-06-27 22:20:12 | ethan.furman | set | recipients:
+ ethan.furman, ncoghlan, Arfrever, Tyler.Crompton |
2012-06-27 22:20:12 | ethan.furman | set | messageid: <1340835612.57.0.306236807074.issue15209@psf.upfronthosting.co.za> |
2012-06-27 22:20:12 | ethan.furman | link | issue15209 messages |
2012-06-27 22:20:11 | ethan.furman | create | |
|