[Pythonmac-SIG] Another odd question re breaks/returns

Michael Dunn mdunn at cantares.on.ca
Sun Mar 20 23:09:41 CET 2005


    I have a double-nested 'for' loop in a function.  I can't use 
'break' to get out of BOTH loops from the inner loop.  Can I simply 
put a 'return' statement in the inner loop, or will this completely 
mess up the stack or something?

thanks!
Michael






More information about the Pythonmac-SIG mailing list