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 <1441274033.3.0.407992349306.issue24992@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-09-03 09:53:53vstinnersetrecipients: + vstinner, eric.snow
2015-09-03 09:53:53vstinnersetmessageid: <1441274033.3.0.407992349306.issue24992@psf.upfronthosting.co.za>
2015-09-03 09:53:53vstinnerlinkissue24992 messages
2015-09-03 09:53:53vstinnercreate