[Tutor] Dictionary Question

Michael Selik michael.selik at gmail.com
Tue May 3 14:40:37 EDT 2016


On Mon, May 2, 2016 at 8:58 PM Jason N. via Tutor <tutor at python.org> wrote:

> What is the best way to make dictionary requests case in-sensitive? For
> example, "Apple and "apple" should bring back the same dictionary
> response. Thank you.
>

Take a look at how the requests library solves the problem with a
"CaseInsensitiveDict" (
https://github.com/kennethreitz/requests/blob/master/requests/structures.py)


More information about the Tutor mailing list