A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-April/125255.html below:

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

[Python-Dev] casefolding in pathlib (PEP 428) [Python-Dev] casefolding in pathlib (PEP 428)Devin Jeanpierre jeanpierreda at gmail.com
Fri Apr 12 14:06:37 CEST 2013
On Fri, Apr 12, 2013 at 4:39 AM, Antoine Pitrou <solipsis at pitrou.net> 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4