[Python-Dev] Switch statement
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Jun 21 02:23:12 CEST 2006
Guido van Rossum wrote:
> Well, the hypothetical use case is one where we have an arbitrary
> object of unknown origin or type, and we want to special-case
> treatment for a few known values.
I'd need convincing that this use case is anything more
than hypothetical.
Also, you can always put your own test for hashability
around it if you want.
--
Greg
More information about the Python-Dev
mailing list