On Jul 5, 1:57 am, Phoe6 <[EMAIL PROTECTED]> wrote:
> I have a requirement for using caseless dict. I searched the web for
> many different implementations and found one snippet which was
> implemented in minimal and useful way.
>
> #
> import UserDict
>
> class CaseInsensitiveDict(dict
Use the __str__ and __unicode__ methods to control the printed
representation of a class.
--
http://mail.python.org/mailman/listinfo/python-list
In article
<[EMAIL PROTECTED]>,
Phoe6 <[EMAIL PROTECTED]> wrote:
> I have a requirement for using caseless dict. I searched the web for
> many different implementations and found one snippet which was
> implemented in minimal and useful way.
>
> #
> import UserDict
>
> class CaseIn
I have a requirement for using caseless dict. I searched the web for
many different implementations and found one snippet which was
implemented in minimal and useful way.
#
import UserDict
class CaseInsensitiveDict(dict, UserDict.DictMixin):
def __init__(self, *args, **kwargs):