[Python-Dev] Switch statement

Guido van Rossum guido at python.org
Wed Jun 21 06:56:33 CEST 2006

On 6/20/06, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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.

Right. I wasn't defending the use case. That's why I called it "hypothetical".

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list