From 3348585ff1db462817235f79297cc7af7678d4e7 Mon Sep 17 00:00:00 2001 From: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com> Date: Wed, 29 Apr 2020 11:14:48 +0300 Subject: [PATCH 1/2] Update design.rst --- Doc/faq/design.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/faq/design.rst b/Doc/faq/design.rst index df3dbf4977e01e..8beba4fb1e9d33 100644 --- a/Doc/faq/design.rst +++ b/Doc/faq/design.rst @@ -260,7 +260,7 @@ 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:`275` for +consensus (yet) on whether and how to do range tests. See :pep:`3103` for complete details and the current status. For cases where you need to choose from a very large number of possibilities, From 4427cc4a16b269efd6e17a0f2fe05b1c01b94499 Mon Sep 17 00:00:00 2001 From: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com> Date: Wed, 29 Apr 2020 11:20:54 +0300 Subject: [PATCH 2/2] Update design.rst --- Doc/faq/design.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/faq/design.rst b/Doc/faq/design.rst index 8beba4fb1e9d33..d2b098bdad329f 100644 --- a/Doc/faq/design.rst +++ b/Doc/faq/design.rst @@ -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