cidict problems
Jens Vagelpohl
jens at dataflake.org
Thu Aug 8 15:20:15 CEST 2002
michael,
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.
here is the relevant code::
35 def get(self, key, failobj=None):
36 -> return self.data.get(key, failobj)
at this point self.data is...
(Pdb) p self.data
{'subschemasubentry': ['cn=Subschema']}
and key is...
(Pdb) p key
'subschemaSubentry'
... and when the "get" is called this is the result::
(Pdb) p self.data.get(key, failobj)
[None]
maybe the cidict class should override the method "get" as well?
jens
More information about the python-ldap
mailing list