Message152261
| Author |
Mark.Shannon |
| Recipients |
Mark.Shannon, amaury.forgeotdarc, benjamin.peterson, ncoghlan, ron_adam |
| Date |
2012年01月29日.21:23:09 |
| SpamBayes Score |
3.479073e-05 |
| Marked as misclassified |
No |
| Message-id |
<4F25B8C5.9070905@hotpy.org> |
| In-reply-to |
<1327871342.9.0.737153143975.issue13897@psf.upfronthosting.co.za> |
| Content |
The important part is not the change of name, but wrapping them in a
struct which can be embedded in both PyThreadState and PyGenObject.
The state->exc_XXX trio of values are the currently handled exception
(sys.exc_info()) and are shadowed by generator exception handlers.
My patch models that shadowing rather than swapping the values in and
out. This allows me to eliminate save_exc_state(), swap_exc_state()
and restore_and_clear_exc_state() completely. |
|