Message244043
I noticed that my patch isn't entirely correct. If the exception value is a tuple, both PyErr_SetObject() and PyErr_NormalizeException() use it directly as *argument tuple* for the exception instantiation call, i.e. they essentially unpack it into separate arguments. The StopIteration value is then only the first item of that tuple.
I wonder if it's worth repeating this, uhm, surprising special case in yet another place, or if we should just always instantiate the exception. |
|
| Date |
User |
Action |
Args |
| 2015-05-25 18:08:54 | scoder | set | recipients:
+ scoder, ncoghlan, pitrou, python-dev |
| 2015-05-25 18:08:54 | scoder | set | messageid: <1432577334.53.0.263618655259.issue23996@psf.upfronthosting.co.za> |
| 2015-05-25 18:08:54 | scoder | link | issue23996 messages |
| 2015-05-25 18:08:54 | scoder | create | |
|