mò "á¸Ec@sCdZdklZdefd„ƒYZdefd„ƒYZdS(sQ Revision information: $Id: Mapping.py 40218 2005-11-18 14:39:19Z andreasjung $ (s Interfacet IReadMappingcBs,tZdZd„Zed„Zd„ZRS(sBasic mapping interface cCsdS(s^Get a value for a key A KeyError is raised if there is no value for the key. N((tkey((t7/data/zmath/zope/lib/python/Interface/Common/Mapping.pyt __getitem__scCsdS(saGet a value for a key The default is returned if there is no value for the key. N((Rtdefault((Rtget scCsdS(s,Tell if a key exists in the mapping N((R((Rthas_key&s(t__name__t __module__t__doc__RtNoneRR(((RRs   tIEnumerableMappingcBs2tZdZd„Zd„Zd„Zd„ZRS(s2Mapping objects whose items can be enumerated cCsdS(s.Return the keys of the mapping object N((((Rtkeys.scCsdS(s0Return the values of the mapping object N((((Rtvalues2scCsdS(s/Return the items of the mapping object N((((Rtitems6scCsdS(s#Return the number of items N((((Rt__len__:s(RRR R R RR(((RR *s    N(R t InterfaceRR (RRR ((Rt?s