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.

Title: Fix OrderedDict.__sizeof__
Type: behavior Stage: resolved
Components: Extension Modules Versions: Python 3.6, Python 3.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: eric.snow, loewis, python-dev, rhettinger, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2015-12-20 08:52 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit
odict_sizeof.patch serhiy.storchaka, 2015-12-20 08:52 review
Messages (3)
msg256754 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-12-20 08:52
Proposed patch correctly calculates the size of OrderedDict (the size of an instance dict should not be counted) and adds exact tests for sizeof.
msg256814 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2015-12-21 23:12

Thanks for doing that.  It's definitely cleaner. :)
msg256827 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-12-22 06:22
New changeset 0a2ea08fcebe by Serhiy Storchaka in branch '3.5':
Issue #25914: Fixed and simplified OrderedDict.__sizeof__.

New changeset 624316fbb39d by Serhiy Storchaka in branch 'default':
Issue #25914: Fixed and simplified OrderedDict.__sizeof__.
Date User Action Args
2022-04-11 14:58:25adminsetgithub: 70102
2015-12-22 06:24:20serhiy.storchakasetstatus: open -> closed
assignee: serhiy.storchaka
resolution: fixed
stage: commit review -> resolved
2015-12-22 06:22:53python-devsetnosy: + python-dev
messages: + msg256827
2015-12-21 23:12:48eric.snowsetmessages: + msg256814
stage: patch review -> commit review
2015-12-20 09:46:31serhiy.storchakasetnosy: + loewis, rhettinger, eric.snow
2015-12-20 08:52:19serhiy.storchakacreate