STINNER Victor added the comment: >>>> d = dict.fromkeys(range(2000)) >>>> for i in range(1999): del d[i] > ... >>>> sys.getsizeof(d) > 41020 >>>> sys.getsizeof(d.copy()) > 136
Why "del" doesn't compact the dict? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31179> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com