mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Model set.pop() after dict.popitem().
This commit is contained in:
parent
6a694508ae
commit
67962ab1bb
2 changed files with 34 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue