[issue44617] Undesired Behavior on `match` using Singleton object

Brandt Bucher report at bugs.python.org
Wed Aug 4 17:12:18 EDT 2021


Brandt Bucher <brandtbucher at gmail.com> added the comment:

Yep, everything is working as intended here. Thanks, Dennis, for taking the time to explain why.

Pablo, if you're still unsure of why your examples behave the way they do, I strongly recommend reading through the official tutorial (PEP 636). It goes through the behavior of each of the different patterns in a very straightforward, easy-to-digest way.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44617>
_______________________________________


More information about the Python-bugs-list mailing list