Skip to content

Commit e504a21

Browse files
committed
fix some comments
1 parent 65d748b commit e504a21

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Objects/dictnotes.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ A values array
7070
Tunable Dictionary Parameters
7171
-----------------------------
7272

73-
See comments for PyDict_MINSIZE_SPLIT, PyDict_MINSIZE_COMBINED,
74-
USABLE_FRACTION and GROWTH_RATE in dictobject.c
73+
See comments for PyDict_MINSIZE, USABLE_FRACTION and GROWTH_RATE in
74+
dictobject.c
7575

7676
Tune-ups should be measured across a broad range of applications and
7777
use cases. A change to any parameter will help in some situations and

Objects/dictobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Size of indices is dk_size. Type of each index in indices is vary on dk_size:
4040
* int32 for 2**16 <= dk_size <= 2**31
4141
* int64 for 2**32 <= dk_size
4242
43-
dk_entries is array of PyDictKeyEntry. Its size is USABLE_FRACTION(dk_size).
44-
DK_ENTRIES(dk) can be used to get pointer to entries.
43+
dk_entries is array of PyDictKeyEntry when dk_kind == DICT_KEYS_GENERAL or
44+
PyDictUnicodeEntry otherwise. Its length is USABLE_FRACTION(dk_size).
4545
4646
NOTE: Since negative value is used for DKIX_EMPTY and DKIX_DUMMY, type of
4747
dk_indices entry is signed integer and int16 is used for table which

0 commit comments

Comments
 (0)