[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread Shreyan Avigyan
Got it ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread Daniel Moisset
I'm not sure if you're reading the right document, but PEP 634 refers to 636 in its second paragraph On Tue, 4 May 2021, 19:56 Shreyan Avigyan, wrote: > Ok. Now I'm able to understand. PEP 634 should have a reference to PEP 636 > or else it's pretty hard to understand because the syntax

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread Shreyan Avigyan
This thread is closed therefore. (It was mistakenly opened due to misunderstanding.) ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread Shreyan Avigyan
Ooops...Didn't notice it. Anyway this thread is considered closed. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread Shreyan Avigyan
Ok. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread Brandt Bucher
It does, right at the top: https://www.python.org/dev/peps/pep-0634/#abstract ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread Shreyan Avigyan
Ok. Now I'm able to understand. PEP 634 should have a reference to PEP 636 or else it's pretty hard to understand because the syntax section demonstrates PEG implementation of this. ___ Python-ideas mailing list -- python-ideas@python.org To

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread Shreyan Avigyan
I'm confused. PEP 634 is about switch statements in Python or PEG? ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread David Lowry-Duda
> Isn't PEP 643 for PEG grammar pattern matching? (I'm talking about > switch statements in Python) I think you are referring to PEP 634, the one I linked to. I suggest you read it (and the other link I sent). I copy from PEP 636, marked as a sort of "tutorial" for PEP 634: ``` A match

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread David Lowry-Duda
> Most of programming languages out there have switch-case statements. > Python doesn't have support for switch-case statements though. > switch-case statements can sometimes be nice and tidy and sometimes it > may be a horrible nightmare. But that also applies to if-elif-else > statements. It

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread Shreyan Avigyan
Sorry PEP 634 not PEP 643 ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread Shreyan Avigyan
Isn't PEP 643 for PEG grammar pattern matching? (I'm talking about switch statements in Python) ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org

[Python-ideas] Re: Add switch-case statements in Python

2021-05-04 Thread Antal Gábor
How is this differs from PEP 634 (https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching)? On 2021. 05. 04. 20:33, Shreyan Avigyan wrote: Most of programming languages out there have switch-case statements. Python doesn't have support for switch-case statements