Message233640
PyErr_Restore doesn't seem to trigger exception chaining. But thanks for the tip about explicitly setting the traceback; not sure how I missed that, but now the StopIteration traceback is visible.
Minor point: The previous patch was setting the __context__ of the RuntimeError, whereas it ought to have been setting __cause__. Have corrected that.
So here, before I move further forward, is a new POC patch; I've removed the patches that rhettinger applied already, and fixed up tracebacks. So now it's a better-behaved POC, at least. |
|
| Date |
User |
Action |
Args |
| 2015-01-08 10:38:54 | Rosuav | set | recipients:
+ Rosuav, gvanrossum, rhettinger, ncoghlan, belopolsky, scoder, vstinner, r.david.murray, python-dev, schlamar, serhiy.storchaka |
| 2015-01-08 10:38:54 | Rosuav | set | messageid: <[email protected]> |
| 2015-01-08 10:38:54 | Rosuav | link | issue22906 messages |
| 2015-01-08 10:38:54 | Rosuav | create | |
|