continue and break frustration
Rene Pijlman
reply.in.the.newsgroup at my.address.is.invalid
Tue Dec 16 13:31:31 EST 2003
Glen Wheeler:
>a performance intensive program in python.
> The problem I'm having is I want to use break and continue to get
>out from more than one level of loop. If I set a variable and then
>check it my program will take too much of a performance hit.
> Are there any alternatives people can think of?
Exception handling perhaps. Or old fashioned if-then-else, while etc.
But if the application is performance critical to the extent of one
variable set-and-test, I doubt that Python is the best choice.
--
René Pijlman
More information about the Python-list
mailing list