(Sep-04-2018, 07:11 PM)Skaperen Wrote: what is the principle for these decisions?There was long discussion about this topic for many year.
It's relative easy to solve all this without adding stuff to the language,so all suggestion was rejected.
PEP 3103 -- A Switch/Case Statement
Quote:Author: guido at python.org (Guido van Rossum)Why isn’t there a switch or case statement in Python?
Status: Rejected
Created: 25-Jun-2006
PEP 275 -- Switching on Multiple Values