[issue40434] Update of reasoning why there is no case statement
New submission from Ama Aje My Fren <amaajemyfren@gmail.com>: The design and history FAQ (https://docs.python.org/dev/faq/design.html#why-isn-t-there-a-switch-or-case...) 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. ---------- assignee: docs@python components: Documentation messages: 367633 nosy: amaajemyfren, docs@python priority: normal severity: normal status: open title: Update of reasoning why there is no case statement versions: Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40434> _______________________________________
Change by Ama Aje My Fren <amaajemyfren@gmail.com>: ---------- keywords: +patch pull_requests: +19110 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19787 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40434> _______________________________________
Change by Ama Aje My Fren <amaajemyfren@gmail.com>: ---------- type: -> enhancement _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40434> _______________________________________
Joannah Nanjekye <nanjekyejoannah@gmail.com> added the comment: What is your reasoning on referencing just one of the PEPs and not both of them? ---------- nosy: +nanjekyejoannah _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40434> _______________________________________
Ama Aje My Fren <amaajemyfren@gmail.com> added the comment: 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. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40434> _______________________________________
Joannah Nanjekye <nanjekyejoannah@gmail.com> added the comment:
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. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40434> _______________________________________
participants (2)
-
Ama Aje My Fren
-
Joannah Nanjekye