On 26/06/20 5:07 am, MRAB wrote:
How do you indicate that you want it to match anything and don't care about the value?
case Spam(-> _): Or if that's considered too verbose and we're willing to make _ even more special, it could be just case Spam(_): In that case we would be regarding _ as a "value that matches anything" rather than a "name that doesn't get assigned to". -- Greg _______________________________________________ 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/3YJCAGV56FNCGT3VLTJUOHIIIROZR3IY/ Code of Conduct: http://python.org/psf/codeofconduct/