case insensitive dictionary

Fuzzyman fuzzyman at gmail.com
Mon Nov 27 15:34:37 EST 2006


John Henry wrote:
> I believe the standard dictionary should be amened to allow the use of
> case insensitive keys - as an option.  I found some work done by others
> to do that at:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/283455
>
> but the problem with that approach is that they lowercase the keys
> immediately when you create the dictionary and so the true identity of
> the key is lost.

A later version of this class does give you access to the original case
:

    http://www.voidspace.org.uk/python/archive.shtml#caseless

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml




More information about the Python-list mailing list