What about `case for Point(x, 0):`? It reads very naturally, the presence of "for" hints against Point() being a call to the class, and "for" is an existing keyword that would make no other sense in that position. Examples with other formats such as `case for [x, 0]:` seem to work just as well. _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/RAKL3WGR3CJLRVNGZQUAWSJAR3TT4VDE/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-Dev] PEP 622: Structural Pattern Matchin... Guido van Rossum
- [Python-Dev] Re: PEP 622: Structural Patter... David Mertz
- [Python-Dev] Re: PEP 622: Structural Patter... Joao S. O. Bueno
- [Python-Dev] Re: PEP 622: Structural Patter... Antoine Pitrou
- [Python-Dev] Re: PEP 622: Structural Pa... Chris Angelico
- [Python-Dev] Re: PEP 622: Structura... Rhodri James
- [Python-Dev] Re: PEP 622: Structura... salernof11
- [Python-Dev] Re: PEP 622: Structural Patter... Rob Cliffe via Python-Dev
- [Python-Dev] Re: PEP 622: Structural Patter... Pablo Galindo Salgado
- [Python-Dev] Re: PEP 622: Structural Pa... Brandt Bucher
- [Python-Dev] Re: PEP 622: Structura... Ethan Furman
- [Python-Dev] Re: PEP 622: Struc... Brandt Bucher
- [Python-Dev] Re: PEP 622: ... Greg Ewing
- [Python-Dev] Re: PEP 622: Structural Pa... Greg Ewing
- [Python-Dev] Re: PEP 622: Structural Patter... Emily Bowman
- [Python-Dev] Re: PEP 622: Structural Patter... Daniel Moisset
- [Python-Dev] Re: PEP 622: Structural Pa... Paul Moore