Re: [ZODB-Dev] PersistentMapping

2005-11-17 Thread Jeremy Hylton
On 11/17/05, Thomas Lotze [EMAIL PROTECTED] wrote: Hi, I just noticed two things about persistent.PersistentMapping: - It inherits from UserDict.UserDict. Is there any reason not to inherit from dict directly, given that this has been possible since Python 2.3 IIRC? It has been

Re: [ZODB-Dev] PersistentMapping glitches

2005-08-23 Thread Victor Safronovich
Hello Tim Peters, Monday, August 22, 2005, 8:44:08 PM, you wrote: from BTrees.OOBTree import OOBTree b = OOBTree() b.update(pm) TP Traceback (most recent call last): TP File stdin, line 1, in ? TP File C:\python23\lib\UserDict.py, line 19, in __getitem__ TP def __getitem__(self,

[ZODB-Dev] PersistentMapping glitches

2005-08-22 Thread Tim Peters
Collector http://www.zope.org/Collectors/Zope/1873 raises some odd issues. One (although the poster didn't realize this, it's _part_ of their complaint) is that PersistentMapping doesn't play well with the newer Python iteration protocol: from ZODB.PersistentMapping import