This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Update of reasoning why there is no case statement
Type: enhancement Stage: patch review
Components: Documentation Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: amaajemyfren, docs@python, nanjekyejoannah
Priority: normal Keywords: patch

Created on 2020-04-29 08:27 by amaajemyfren, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 19787 closed amaajemyfren, 2020-04-29 08:32
Messages (4)
msg367633 - (view) Author: Ama Aje My Fren (amaajemyfren) * Date: 2020-04-29 08:27
The design and history FAQ (https://docs.python.org/dev/faq/design.html#why-isn-t-there-a-switch-or-case-statement-in-python) explains why there is no case statement referencing PEP 275(https://www.python.org/dev/peps/pep-0275/).

For Python 3 there is, however, PEP 3103(https://www.python.org/dev/peps/pep-3103/) which rejected the proposal for a switch statement.
msg367710 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2020-04-29 22:33
What is your reasoning on referencing just  one of the PEPs and not both of them?
msg367838 - (view) Author: Ama Aje My Fren (amaajemyfren) * Date: 2020-05-01 12:26
the statement initially said that there was _no consensus yet on how to do range tests_. This is not true because there is now a decision to not do range tests - that decision is only in PEP 3103 and not in PEP 275 (PEP 275 actually links to PEP 3103 to explain why it is rejected). My feeling is that putting two references complicates the goal of explaining it.
msg367865 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2020-05-01 17:23
> PEP 275 actually links to PEP 3103 to explain why it is rejected

Well, am not very convinced if consensus was reached on range tests so I will refrain for someone else's opinion as it is not as apparent to me yet.
History
Date User Action Args
2022-04-11 14:59:30adminsetgithub: 84614
2020-05-01 17:23:06nanjekyejoannahsetmessages: + msg367865
2020-05-01 12:26:40amaajemyfrensetmessages: + msg367838
2020-04-29 22:33:04nanjekyejoannahsetnosy: + nanjekyejoannah
messages: + msg367710
2020-04-29 08:33:46amaajemyfrensettype: enhancement
2020-04-29 08:32:18amaajemyfrensetkeywords: + patch
stage: patch review
pull_requests: + pull_request19110
2020-04-29 08:27:47amaajemyfrencreate