On Mon, Nov 8, 2021 at 10:29 PM Ethan Furman <et...@stoneleaf.us> wrote:

>
> The way I see it, the following should hold
>
>      empty_flag = RegexFlag(0)
>      any_case = RegexFlag.IGNORECASE
>      any_case_on_any_line = RegexFlag.IGNORECASE | RegexFlag.MULTILINE
>
>      any_case in empty_flag is False
>      any_case_on_any_line in empty_flag is False
>
>      empty_flag in any_case is False
>      empty_flag in any_case_on_any_line is False
>

The latter two defy all logic. Please don't. Your 'in' operator clearly
means "is a subset of", and the empty set emphatically is a subset of all
sets (this is the most basic mainstream set theory you can think of).

-- 
--Guido van Rossum (python.org/~guido)
*Pronouns: he/him **(why is my pronoun here?)*
<http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________
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/3KNIZZQTSNDNK3BCGFJVPQD7B2PIXEL2/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to