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 serhiy.storchaka
Recipients Tim.Graham, charettes, eric.snow, serhiy.storchaka
Date 2015-12-28.21:49:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
An OrderedDict owns two references to every key (as a dict and from a linked list). Therefore it should visit it twice in tp_traverse.

Proposed patch fixes garbage collection for OrderedDict. It also rewrites OrderedDict clearing in more reentrant form (a linked list is detached from an OrderedDict before deallocating its nodes that can trigger executing user code).
Date User Action Args
2015-12-28 21:49:15serhiy.storchakasetrecipients: + serhiy.storchaka, eric.snow, charettes, Tim.Graham
2015-12-28 21:49:14serhiy.storchakasetmessageid: <>
2015-12-28 21:49:14serhiy.storchakalinkissue25935 messages
2015-12-28 21:49:14serhiy.storchakacreate