[Zodb-checkins] SVN: ZODB/trunk/src/BTrees/Interfaces.py added missing __getitem__ method to IMinimalDictionary, fixed another doc string

Thomas Lotze tl at gocept.com
Thu Jul 24 05:01:42 EDT 2008


Log message for revision 88776:
  added missing __getitem__ method to IMinimalDictionary, fixed another doc string

Changed:
  U   ZODB/trunk/src/BTrees/Interfaces.py

-=-
Modified: ZODB/trunk/src/BTrees/Interfaces.py
===================================================================
--- ZODB/trunk/src/BTrees/Interfaces.py	2008-07-23 23:39:50 UTC (rev 88775)
+++ ZODB/trunk/src/BTrees/Interfaces.py	2008-07-24 09:01:39 UTC (rev 88776)
@@ -140,13 +140,19 @@
         Return the default if has_key(key) is false.
         """
 
+    def __getitem__(key):
+        """Get the value associated with the given key.
+
+        Raise KeyError if has_key(key) is false.
+        """
+
     def __setitem__(key, value):
         """Set the value associated with the given key."""
 
     def __delitem__(key):
         """Delete the value associated with the given key.
 
-        Raise KeyError if the key if has_key(key) is false.
+        Raise KeyError if has_key(key) is false.
         """
 
     def values(min=None, max=None, excludemin=False, excludemax=False):



More information about the Zodb-checkins mailing list