[issue25949] Lazy creation of __dict__ in OrderedDict

2017-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue25949] Lazy creation of __dict__ in OrderedDict

2016-02-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue25949] Lazy creation of __dict__ in OrderedDict

2016-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset caab6b356a9e by Serhiy Storchaka in branch 'default': Issue #25949: __dict__ for an OrderedDict instance is now created only when https://hg.python.org/cpython/rev/caab6b356a9e -- nosy: +python-dev ___ Py

[issue25949] Lazy creation of __dict__ in OrderedDict

2016-01-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch have no visible effect, except lesser memory consumption. The latter is hard to measure in tests. Additional tests just ensure that the patch doesn't break existing behavior. -- assignee: -> serhiy.storchaka __

[issue25949] Lazy creation of __dict__ in OrderedDict

2015-12-26 Thread Camilla Montonen
Camilla Montonen added the comment: Hi Serhiy, I tried to see whether the patch's unit test in test_ordered_dict.py would fail when the changes to odictobject.c were not applied and it did not. The code change to test_ordered_dict.py does not appear to test the fact that a dict is not automat

[issue25949] Lazy creation of __dict__ in OrderedDict

2015-12-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: For now OrderedDict always creates an empty dict for __dict__. >>> from collections import OrderedDict >>> import gc >>> gc.get_referents(OrderedDict()) [{}] >>> class OD(OrderedDict): pass ... >>> gc.get_referents(OD()) [, {}] But dict subclasses (as well