Chris Angelico wrote:
On Fri, Jun 17, 2011 at 8:07 AM, Erik Max Francis <m...@alcyone.com> wrote:
It's quite consistent on which control structures you can break out of --
it's the looping ones.

Plus functions.

No:

>>> def f():
...  break
...
  File "<stdin>", line 2
SyntaxError: 'break' outside loop

--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
 San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype erikmaxfrancis
  Do not stand in a place of danger trusting in miracles.
   -- (an Arab proverb)
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to