Hi everyone,
As the 3.10 beta is not so far away, I've cut down PEP 653 down to the
minimum needed for 3.10. The extensions will have to wait for 3.11.
The essence of the PEP is now that:
1. The semantics of pattern matching, although basically unchanged, are
more precisely defined.
2. The __match_kind__ special attribute will be used to determine which
patterns to match, rather than relying on the collections.abc module.
Everything else has been removed or deferred.
The PEP now has only the slightest changes to semantics, which should be
undetectable in normal use. For those corner cases where there is a
difference, it is to make pattern matching more robust.
E.g. With PEP 653, pattern matching will work in the collections.abc
module. With PEP 634 it does not.
As always, all thoughts and comments are welcome.
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/YYIT3QXMLPNLXQAQ5BCXE4LLJ57EE7JV/
Code of Conduct: http://python.org/psf/codeofconduct/