I think I'm missing something, why is case insensitivity a mess?

On Mon, Mar 23, 2020 at 9:32 AM Chris Angelico <rosuav@gmail.com> wrote:
On Mon, Mar 23, 2020 at 5:06 PM Steve Barnes <GadgetSteve@live.co.uk> wrote:
>
> I personally think that there is a better case for an ignore_case flag – the number of times that I have been caught out with [‘a.doc’, ‘b.Doc’, ‘c.DOC’] especially on MS platforms.
>

Case insensitivity is a mess. I think it'd be a lot cleaner to keep
this as-is, and for the case insensitive use-case, people can still do
it manually. (Basically case-fold for the comparison, but then trim
from the original as is.)

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/4Q2X4NSLCD5PBZMJ3TRQ7UGB73JI4AH7/
Code of Conduct: http://python.org/psf/codeofconduct/