Read this thread, which was discussed on the list a few days ago:
http://www.mail-archive.com/python-list@python.org/msg150704.html
On 6/25/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
>
> Hi
>
> My requirement is to check a variable with a set of constant values and
> call a particular
Hi
My requirement is to check a variable with a set of constant values
and call a particular function depending on the value of the variable. A
C-language implementation might look something like :
switch (a) {
case 1 : func1();
case 2 : func2() ;
default : func3();
}
How t