Hi Guido,
On 31/03/2021 9:53 pm, Guido van Rossum wrote:
On Wed, Mar 31, 2021 at 12:08 PM Mark Shannon <m...@hotpy.org
<mailto:m...@hotpy.org>> wrote:
[snip]
Apart from that, I think the semantics are so similar once you've added
__match_seq__/__match_map__ to PEP 634 that is hard to
claim one is better than the other.
My (unfinished) implementation of PEP 653 makes almost no changes to
the
test suite.
I'd like to see where those differences are -- then we can talk about
which is better. :-)
Almost all the changes come from requiring __match_args__ to be a tuple
of unique strings.
The only other change is that
case int(real=0+0j, imag=0-0j):
fails to match 0, because `int` is `MATCH_SELF` so won't match attributes.
https://github.com/python/cpython/compare/master...markshannon:pep-653-implementation?expand=1#diff-490b4f3b911cb4ca281e9ca6ff814bc10d331f0421f6c6971b08d9f29020620b
Cheers,
Mark.
_______________________________________________
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/IKJXKRO5MFUKKEB347X7TSXFVWWLDJYB/
Code of Conduct: http://python.org/psf/codeofconduct/