Re: using break in exec()

2006-05-01 Thread Steve Holden
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

using break in exec()

2006-05-01 Thread Weber Matthias
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