[issue18986] Add a case-insensitive case-preserving dict

Antoine Pitrou report at bugs.python.org
Mon Sep 9 13:54:42 CEST 2013


Antoine Pitrou added the comment:

> Surely a case-insensitive dict should use str.casefold, not
> str.lower?

Perhaps. Network protocols will usually only allow ASCII in parts
where case is insensitive (e.g. header names), so it shouldn't make a
difference.

Implementing the generic pattern means this is left at the user's
discretion, though.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18986>
_______________________________________


More information about the Python-bugs-list mailing list