Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013年4月12日 05:09:22 -0700

On Fri, Apr 12, 2013 at 4:39 AM, Antoine Pitrou <[email protected]> wrote:
> Ok, I've taken a look at the code. Right now lower() is used for two
> purposes:
>
> 1. comparisons (__eq__ and __ne__)
> 2. globbing and matching
>
> While (1) could be dropped, for (2) I think we want glob("*.py") to find
> "SETUP.PY" under Windows. Anything else will probably be surprising to
> users of that platform.
OT, but, why is .lower() used for case folding in these use-cases
instead of .casefold()?
-- Devin
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to