This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients Mark.Shannon, benjamin.peterson, methane, rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-10-25.19:05:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477422325.43.0.617527922598.issue28509@psf.upfronthosting.co.za>
In-reply-to
Content
script:
import sys

for i in range(25):
    a = {}
    b = {j: j for j in range(i)}
    a.update(b)
    print(i, sys.getsizeof(a))

before:
0 256
1 256
2 256
3 256
4 256
5 256
6 384
7 384
8 664
9 664
10 664
11 664
12 664
13 664
14 664
15 664
16 1200
17 1200
18 1200
19 1200
20 1200
21 1200
22 1200
23 1200
24 1200

patched:
0 256
1 256
2 256
3 256
4 256
5 256
6 384
7 384
8 384
9 384
10 384
11 664
12 664
13 664
14 664
15 664
16 664
17 664
18 664
19 664
20 664
21 664
22 1200
23 1200
24 1200
History
Date User Action Args
2016-10-25 19:05:25methanesetrecipients: + methane, rhettinger, benjamin.peterson, Mark.Shannon, serhiy.storchaka, xiang.zhang
2016-10-25 19:05:25methanesetmessageid: <1477422325.43.0.617527922598.issue28509@psf.upfronthosting.co.za>
2016-10-25 19:05:25methanelinkissue28509 messages
2016-10-25 19:05:25methanecreate