A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/330666.html below:

infinite loop

infinite loop infinite loopCarl Friedrich Bolz cfbolz at gmx.de
Wed Sep 7 10:45:30 EDT 2005
Hi!

LOPEZ GARCIA DE LOMANA, ADRIAN wrote:
> Hi all, 
> 
> I have a question with some code I'm writting:
> 
> 
> def main():
> 
>     if option == 1:
> 
>         function_a()
> 
>     elif option == 2:
> 
>         function_b()
> 
>     else:
> 
>         raise 'option has to be either 1 or 2'
> 
[snip]

One further note: string exceptions are being phased out. It is 
discouraged to use them. See

http://docs.python.org/lib/module-exceptions.html
http://www.python.org/peps/pep-0290.html

for details.

Cheers,

Carl Friedrich Bolz

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4