Weber Matthias wrote:
> Hi,
>
> has anybody a suggestion to get this example to work? I have the need to
> jump out of the loop within the exec statement.
>
> while True:
> exec("break")
>
You can't do that, just as you can't break out of a loop by executing a
break within a function that
Title: using break in exec()
Hi,
has anybody a suggestion to get this example to work? I have the need to jump out of the loop within the exec statement.
while True:
exec("break")
Thanks
Matthias
--
http://mail.python.org/mailman/listinfo/python-list