On 11/9/21 9:02 AM, Guido van Rossum wrote:
> On Mon, Nov 8, 2021 at 10:29 PM Ethan Furman 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).
Thank you everyone for your feedback. As is probably evident, my degree is not is CS nor maths, so I greatly appreciate
your thoughts.
RegexFlags(0) in any_regex_flags_whatsoever will continue to be True.
--
~Ethan~
_______________________________________________
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/VTDPADRF7ZGY6OFNC3ZA5NLU7IQTICOZ/
Code of Conduct: http://python.org/psf/codeofconduct/