This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Stepan.Wagner
Recipients Stepan.Wagner, r.david.murray
Date 2012-12-04.20:28:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CACYzpoEYYOrjuoGhxQZTiLNjXdOXj7dXhyvShg-KJv6VfSc5Ew@mail.gmail.com>
In-reply-to <1354652076.22.0.194061837098.issue16610@psf.upfronthosting.co.za>
Content
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>
> _______________________________________
>
History
Date User Action Args
2012-12-04 20:28:16Stepan.Wagnersetrecipients: + Stepan.Wagner, r.david.murray
2012-12-04 20:28:16Stepan.Wagnerlinkissue16610 messages
2012-12-04 20:28:15Stepan.Wagnercreate