Raymond Hettinger added the comment: Hmm, I wonder why I'm not seeing the same sizes you are seeing.
$ cat setsize.py from sys import getsizeof print( [getsizeof(frozenset(range(n))) for n in range(20)] ) $ python3.4 setsize.py [224, 224, 224, 224, 224, 224, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736] $ python3.5 setsize.py [224, 224, 224, 224, 224, 224, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736] $ python3.6 setsize.py [224, 224, 224, 224, 224, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736] $ python3.4 --version Python 3.4.4 $ python3.5 --version Python 3.5.3 $ python3.6 --version Python 3.6.1 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29949> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com