return in loop for ?
mwm at mired.org
Thu Nov 24 01:19:26 CET 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 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