[Python-Dev] Switch statement
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Jun 21 02:16:26 CEST 2006
More information about the Python-Dev mailing list
Wed Jun 21 02:16:26 CEST 2006
- Previous message: [Python-Dev] Switch statement
- Next message: [Python-Dev] Switch statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Raymond Hettinger wrote: > switch x: > case 1: one() > case 2: two() > case 3: three() > default: too_many() > > Do we require that x be hashable so that the compiler can use a lookup > table? That sounds reasonable. -- Greg
- Previous message: [Python-Dev] Switch statement
- Next message: [Python-Dev] Switch statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list