summaryrefslogtreecommitdiff
path: root/Include/setobject.h
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-08-27 04:03:26 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-08-27 04:03:26 +0000
commitc87b0b55733a717d67b88e622fd250b2cb33baec (patch)
tree7b45f4cd812c6793c7e4f009acaa12114d6d9891 /Include/setobject.h
parent1e57a267d3d6b0c901726fb81c63a2345c5b6910 (diff)
parent058e6a49c6e7b2847286eea5284a89b2757148d9 (diff)
downloadcpython-c87b0b55733a717d67b88e622fd250b2cb33baec.tar.gz
Issue #19884: Merge Readline updates from 3.5
Diffstat (limited to 'Include/setobject.h')
-rw-r--r--Include/setobject.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/Include/setobject.h b/Include/setobject.h
index f17bc1b035..87ec1c8afc 100644
--- a/Include/setobject.h
+++ b/Include/setobject.h
@@ -10,12 +10,13 @@ extern "C" {
/* There are three kinds of entries in the table:
-1. Unused: key == NULL
-2. Active: key != NULL and key != dummy
-3. Dummy: key == dummy
+1. Unused: key == NULL and hash == 0
+2. Dummy: key == dummy and hash == -1
+3. Active: key != NULL and key != dummy and hash != -1
-The hash field of Unused slots have no meaning.
-The hash field of Dummny slots are set to -1
+The hash field of Unused slots is always zero.
+
+The hash field of Dummy slots are set to -1
meaning that dummy entries can be detected by
either entry->key==dummy or by entry->hash==-1.
*/