[Python-Dev] PEP 3103: A Switch/Case Statement
fredrik at pythonware.com
Wed Jun 28 10:06:38 CEST 2006
Nick Coghlan wrote:
> There certainly isn't anything in the code above to suggest to a reader that
> the condition attempting to guard evaluation of the switch statement might not
> do its job.
that's why the evaluation model used in the case statement needs to be explicit.
that applies to the "once but not really" approach, as well as the "static = in global
scope" approach (http://online.effbot.org/2006_06_01_archive.htm#pep-static).
there are no shortcuts here, if we want things to be easy to explain and easy to
More information about the Python-Dev