[Zodb-checkins] SVN: ZODB/branches/alienoid-btrees_setdefault/src/BTrees/BTreeTemplate.c Modified setdefault docstring to use 'd' variable to denote default.

Ruslan Spivak rspivak at nuxeo.com
Sat Aug 27 20:23:41 EDT 2005


Log message for revision 38123:
  Modified setdefault docstring to use 'd' variable to denote default.

Changed:
  U   ZODB/branches/alienoid-btrees_setdefault/src/BTrees/BTreeTemplate.c

-=-
Modified: ZODB/branches/alienoid-btrees_setdefault/src/BTrees/BTreeTemplate.c
===================================================================
--- ZODB/branches/alienoid-btrees_setdefault/src/BTrees/BTreeTemplate.c	2005-08-28 00:01:08 UTC (rev 38122)
+++ ZODB/branches/alienoid-btrees_setdefault/src/BTrees/BTreeTemplate.c	2005-08-28 00:23:41 UTC (rev 38123)
@@ -1862,10 +1862,10 @@
      "Return the value or the default if the key is not found."},
 
     {"setdefault", (PyCFunction) BTree_setdefault, METH_VARARGS,
-     "D.setdefault(k[, x]) -> D.get(k, x), also set D[k] = x if k not in D\n\n"
-     "Return the value like get() except that if key is missing, x is both\n"
+     "D.setdefault(k[, d]) -> D.get(k, d), also set D[k]=d if k not in D\n\n"
+     "Return the value like get() except that if key is missing, d is both\n"
      "returned and inserted into the dictionary as the value of k.\n"
-     "x defaults to None."},
+     "d defaults to None."},
 
     {"maxKey", (PyCFunction) BTree_maxKey,	METH_VARARGS,
      "maxKey([max]) -> key\n\n"



More information about the Zodb-checkins mailing list