cidict problems
Michael Ströder
michael at stroeder.com
Thu Aug 8 15:42:02 CEST 2002
Jens Vagelpohl wrote:
>
> in your last mail you said that the UserDict.get method would turn
> around and use __getitem__. this is not true, it uses "get" itself. i am
> working on python 2.1.3, maybe this has changed in the version you are
> using.
I'm using 2.2.1.
> here is the relevant code::
>
> 35 def get(self, key, failobj=None):
> 36 -> return self.data.get(key, failobj)
Aaargh, that's flawed!
> maybe the cidict class should override the method "get" as well?
/bin/done
I've also added .keys() and .items() with case-respecting handling
including test cases.
Everyone is encouraged to test with different Python versions
(without using option -O off course)!
$ python Lib/ldap/cidict.py
Ciao, Michael.
More information about the python-ldap
mailing list