[Zodb-checkins] SVN: ZODB/branches/alienoid-btrees_pop/src/BTrees/Interfaces.py Added pop method to IDictionaryIsh interface.

Ruslan Spivak rspivak at nuxeo.com
Tue Aug 30 16:48:52 EDT 2005


Log message for revision 38168:
  Added pop method to IDictionaryIsh interface.

Changed:
  U   ZODB/branches/alienoid-btrees_pop/src/BTrees/Interfaces.py

-=-
Modified: ZODB/branches/alienoid-btrees_pop/src/BTrees/Interfaces.py
===================================================================
--- ZODB/branches/alienoid-btrees_pop/src/BTrees/Interfaces.py	2005-08-30 20:45:09 UTC (rev 38167)
+++ ZODB/branches/alienoid-btrees_pop/src/BTrees/Interfaces.py	2005-08-30 20:48:51 UTC (rev 38168)
@@ -226,6 +226,13 @@
         IIBTree can have only integers as values).
         """
 
+    def pop(key, d):
+        """D.pop(k[, d]) -> v, remove key and return the corresponding value.
+
+        If key is not found, d is returned if given, otherwise KeyError is
+        raised.
+        """
+
 class IBTree(IDictionaryIsh):
 
     def insert(key, value):



More information about the Zodb-checkins mailing list