Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2008-06-10 23:29:01


Stefan Seefeld <seefeld <at> sympatico.ca> writes:

>
> Gennadiy Rozental wrote:
> A 'StopIteration' exception is the mechanism by which Python terminates
> an iteration. This exception is certainly not ignored. It is simply
> translated and handed over to the Python runtime. I'm not sure I

Kinda against the rules for good programming

> understand how that gets into the way of debugging.

VS has nice feature I like to use th at allows to catch exceptions in the point
of inception. If I enable it these StopIteration exceptions start to creep up
and make debugging impossible.

> However, you don't need to use iterators to traverse a container. Simply
> fetching a container's size and then use the usual operator[] works
> fine, too (though it might well be slower).

python code is written using regular for construct

Gennadiy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk