mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-44206: Add a version number to dictionary keys (GH-26333)
* Store log2(size) instead of size in dict-keys. * Use enum instead of function pointer to record kind of keys. * Add version number to dict keys.
This commit is contained in:
parent
8994e9c2cd
commit
f8a95df84b
7 changed files with 223 additions and 317 deletions
|
@ -752,7 +752,7 @@ class CPythonOrderedDictTests(OrderedDictTests, unittest.TestCase):
|
|||
check = self.check_sizeof
|
||||
|
||||
basicsize = size('nQ2P' + '3PnPn2P')
|
||||
keysize = calcsize('2nP2n')
|
||||
keysize = calcsize('n2BI2n')
|
||||
|
||||
entrysize = calcsize('n2P')
|
||||
p = calcsize('P')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue