Message176951
OK, thanks for explanation.
The behaviour is still strange, because when I delete try...except clause
from wrap, the StopIteration exc from emptygen terminates the program with
traceback.
On Tue, Dec 4, 2012 at 9:14 PM, R. David Murray <report@bugs.python.org>wrote:
>
> R. David Murray added the comment:
>
> I don't see the bug here.
>
> Your for loop calls wrap. Wrap calls emptygen. Emptygen raises a
> StopIteration exception. That exception is of course propagated upward (it
> isn't caught by wrap), and the loop stops.
>
> ----------
> nosy: +r.david.murray
> resolution: -> invalid
> stage: -> committed/rejected
> status: open -> closed
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue16610>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2012-12-04 20:28:16 | Stepan.Wagner | set | recipients:
+ Stepan.Wagner, r.david.murray |
2012-12-04 20:28:16 | Stepan.Wagner | link | issue16610 messages |
2012-12-04 20:28:15 | Stepan.Wagner | create | |
|