消息 [233640]
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. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2015-01-08 10:38:54 | Rosuav | 修改 | recipients:
+ Rosuav, gvanrossum, rhettinger, ncoghlan, belopolsky, scoder, vstinner, r.david.murray, python-dev, schlamar, serhiy.storchaka |
| 2015-01-08 10:38:54 | Rosuav | 修改 | messageid: <1420713534.42.0.857206694544.issue22906@psf.upfronthosting.co.za> |
| 2015-01-08 10:38:54 | Rosuav | 链接 | issue22906 messages |
| 2015-01-08 10:38:54 | Rosuav | 创建 | |
|