After some indepth reading, all documentation leads to state two things about dictionaries:
- They instantiate with enough capacity for '8' items
- They implicitly resize at 2/3 full (4x under 50,000 items and 2x above)
If that is the case, why does this dictionary only consume 368 bytes of RAM, when an empty dictionary takes 240 bytes, shouldn't this of resized 4x, e.g: 960 bytes?
>>> getsizeof(dict(a=1,b=2,c=3,d=4,e=5,f=6,g=7))
368
>>> getsizeof(dict(a=1,b=2,c=3))
240
Am I being misinformed or misunderstanding something core here? Did something change with regards to this information on python 3.7?