[Python-Dev] switch-based programming in Python

Donald Beaudry Donald Beaudry <donb@abinitio.com>
Fri, 09 Nov 2001 09:58:17 -0500


Here's another,

    when EXPR:
        in CONSTANT_TUPLE:
            [suite]
        in CONSTANT_TUPLE:
            [suite]
        ...
    else:
         [suite]

...and no fall-through, please.

--
Donald Beaudry                                     Ab Initio Software Corp.
                                                   201 Spring Street
donb@init.com                                      Lexington, MA 02421
                  ...So much code, so little time...