Re: caseless dict - questions

2008-07-08 Thread oj
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

Re: caseless dict - questions

2008-07-08 Thread Jeff
Use the __str__ and __unicode__ methods to control the printed representation of a class. -- http://mail.python.org/mailman/listinfo/python-list

Re: caseless dict - questions

2008-07-07 Thread David C. Ullrich
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

caseless dict - questions

2008-07-04 Thread Phoe6
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):