[Python-Dev] Switch statement
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Jun 13 02:22:13 CEST 2006
skip at pobox.com wrote:
> Greg> A way out of this would be to define the semantics so that the
> Greg> expression values are allowed to be cached, and the order of
> Greg> evaluation and testing is undefined. So the first time through,
> Greg> the values could all be put in a dict, to be looked up thereafter.
>
> And if those expressions' values would change if evaluated after further
> execution?
Then you deserve what you get for not reading
the docs.
--
Greg
More information about the Python-Dev
mailing list