How does dictionary size (hash table size) grow in Python ?
a = {}
sys.getsizeof(a)
>240
a.clear()
sys.getsizeof(a)
>72
- Once initialization time dict size become 240.
- Why does the dict size change to 72 instead of 240 after call the dict.clear() method ?