return in loop for ?

Mike Meyer mwm at mired.org
Wed Nov 23 19:19:26 EST 2005


yomgui <not at valid.org> writes:
> Mike Meyer wrote:
>> yomgui <not at valid.org> writes:
>> > is it legal to return inside a for loop
>> > or am I obliged to break out of the loop before returning ?
>> Try it and see:
> it is not because it does work on an implementation of python
> that it will work on any other platform or in the futur.

That's true no matter how you arrive at your answer.

       <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list