This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author thepabloaguilar
Recipients Dennis Sweeney, thepabloaguilar
Date 2021-07-14.02:31:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626229919.99.0.308126028714.issue44617@roundup.psfhosted.org>
In-reply-to
Content
In fact, I'm worried about how to explain some behaviors.

Look here:
```python
# `Maybe` here is the same class described in the first message
Nothing = Maybe()
Maybe.empty = Nothing


if __name__ == '__main__':
    my_maybe = Maybe()
    match my_maybe:
        case Nothing:
            print('FIRST CASE')
        case _:
            print('DEFAULT CASE')
```

I can't use `Nothing` to match the values even though it's a variable but using `Maybe.empty` it works.
History
Date User Action Args
2021-07-14 02:32:00thepabloaguilarsetrecipients: + thepabloaguilar, Dennis Sweeney
2021-07-14 02:31:59thepabloaguilarsetmessageid: <1626229919.99.0.308126028714.issue44617@roundup.psfhosted.org>
2021-07-14 02:31:59thepabloaguilarlinkissue44617 messages
2021-07-14 02:31:59thepabloaguilarcreate