Update design.rst

This commit is contained in:
amaajemyfren 2020-04-29 11:20:54 +03:00 committed by GitHub
parent 3348585ff1
commit 4427cc4a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -259,9 +259,9 @@ Why isn't there a switch or case statement in Python?
-----------------------------------------------------
You can do this easily enough with a sequence of ``if... elif... elif... else``.
There have been some proposals for switch statement syntax, but there is no
consensus (yet) on whether and how to do range tests. See :pep:`3103` for
complete details and the current status.
There have been some proposals for switch statement syntax, but there is
curently no popular support for implementing it. See :pep:`3103` for complete
details and the current status.
For cases where you need to choose from a very large number of possibilities,
you can create a dictionary mapping case values to functions to call. For