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 Rhamphoryncus, effbot, georg.brandl, jcea, ncoghlan, pitrou, timehorse, vstinner
Date 2010-01-14.22:24:21
SpamBayes Score 0.0023742006
Marked as misclassified No
Message-id <1263507864.55.0.956382247271.issue3299@psf.upfronthosting.co.za>
In-reply-to
Content
Patch for cElementTree:
 * Replace PyObject_Del() by Py_DECREF()
 * Catch element_new_extra() errors
 * parser dealloc: replace Py_DECREF() by Py_XDECREF() because the pointer may be NULL (error in the constructor)
 * set all parser attributes to NULL at the beginning of the constructor to be able to call safetly the destructor
 * element_new(): define tag, text, tail attributes before calling element_new_extra() to be able to call the destructor
 * raise a MemoryError on element_new_extra() failure. element_new() didn't raise any error on element_new_extra() failure. Other functions just forget to catch element_new_extra() error.
History
Date User Action Args
2010-01-14 22:24:28vstinnersetrecipients: + vstinner, effbot, georg.brandl, jcea, ncoghlan, Rhamphoryncus, pitrou, timehorse
2010-01-14 22:24:24vstinnersetmessageid: <1263507864.55.0.956382247271.issue3299@psf.upfronthosting.co.za>
2010-01-14 22:24:23vstinnerlinkissue3299 messages
2010-01-14 22:24:22vstinnercreate