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 vstinner
Recipients eric.snow, vstinner
Date 2015-09-03.09:53:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
If PyDict_New() fails (ex: memory allocation failure), odict_new() returns a new OrderedDict with an exception set. It's a bug. Attached patch fixes it.

odict_new() constructor also returns NULL without destroying the newly created object if _odict_initialize() fails. My patch also fixes this.

My patch inlines _odict_initialize() into odict_new() and avoids useless initialization to 0.
Date User Action Args
2015-09-03 09:53:53vstinnersetrecipients: + vstinner, eric.snow
2015-09-03 09:53:53vstinnersetmessageid: <>
2015-09-03 09:53:53vstinnerlinkissue24992 messages
2015-09-03 09:53:53vstinnercreate