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 methane, rhettinger
Date 2017-03-30.18:09:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490897353.44.0.901506949839.issue29949@psf.upfronthosting.co.za>
In-reply-to
Content
(original thread is https://mail.python.org/pipermail/python-list/2017-March/720391.html)

https://github.com/python/cpython/commit/4897300276d870f99459c82b937f0ac22450f0b6

this commit doubles sizeof set object created by set_merge().
It is used by constructor of set and frozenset.

$ /usr/bin/python3
Python 3.5.2+ (default, Sep 22 2016, 12:18:14)
[GCC 6.2.0 20160927] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> s = set(range(10))
>>> sys.getsizeof(frozenset(s))
736

$ python3
Python 3.6.0 (default, Dec 30 2016, 20:49:54)
[GCC 6.2.0 20161005] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import  sys
>>> s = set(range(10))
>>> sys.getsizeof(frozenset(s))
1248
History
Date User Action Args
2017-03-30 18:09:13methanesetrecipients: + methane, rhettinger
2017-03-30 18:09:13methanesetmessageid: <1490897353.44.0.901506949839.issue29949@psf.upfronthosting.co.za>
2017-03-30 18:09:13methanelinkissue29949 messages
2017-03-30 18:09:13methanecreate