[Python-3000] Switch/Case statement PEP

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Mon Dec 11 23:55:21 CET 2006

Josiah Carlson <jcarlson at uci.edu> writes:

> After reading Thomas' post and Talin's response, I'm going to have to
> agree with Talin; syntax options are moot until we can decide what is
> acceptable in the case EXPR.

IMHO any expression should be acceptable, it should be evaluated when
being compared, and there should be other means (independent from
switch/case) to make named constants which may be expanded at compile

   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/

More information about the Python-3000 mailing list