Message164206
| Author |
ethan.furman |
| Recipients |
Arfrever, Tyler.Crompton, ethan.furman, ncoghlan |
| Date |
2012年06月27日.22:20:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1340835612.57.0.306236807074.issue15209@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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<-------------------------------------------------------------------- |
|
History
|
|---|
| 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 |
|