using break in exec()

Weber Matthias Matthias.Weber at faps.uni-erlangen.de
Mon May 1 03:19:34 EDT 2006


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060501/66252c97/attachment.html>


More information about the Python-list mailing list