On Sat, 2004-02-28 at 04:51, [EMAIL PROTECTED] wrote: > Hi > > As far I understand the error happends in this code > > Question to Python developers: > > As far I understand, index does contain b, and > data does not contain 'b'. > > Simple question: why does the line: > > v = self._data[b].get(k, notfound) > > throw KeyError at any case?
The bit of that expression that throws the KeyError is "self._data[b]", not the ".get(k, notfound)" _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )