summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-08-02 03:45:16 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-08-02 03:45:16 (GMT)
commit67962ab1bb4f75083c588e36a00bbcf480fb7c91 (patch)
tree484e65c0f39e514f962747126aa19f8cf3a3f735 /Include
parent6a694508ae2a6259fc3bae723934ae00c0797e48 (diff)
downloadcpython-67962ab1bb4f75083c588e36a00bbcf480fb7c91.zip
cpython-67962ab1bb4f75083c588e36a00bbcf480fb7c91.tar.gz
cpython-67962ab1bb4f75083c588e36a00bbcf480fb7c91.tar.bz2
Model set.pop() after dict.popitem().
Diffstat (limited to 'Include')
-rw-r--r--Include/setobject.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/setobject.h b/Include/setobject.h
index aa4bb9f..f720a82 100644
--- a/Include/setobject.h
+++ b/Include/setobject.h
@@ -13,6 +13,10 @@ There are three kinds of slots in the table:
1. Unused: key == NULL
2. Active: key != NULL and key != dummy
3. Dummy: key == dummy
+
+Note: .pop() abuses the hash field of an Unused or Dummy slot to
+hold a search finger. The hash field of Unused or Dummy slots has
+no meaning otherwise.
*/
#define PySet_MINSIZE 8