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 Oren Milman
Recipients Oren Milman
Date 2017-10-10.05:34:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507613647.9.0.213398074469.issue31728@psf.upfronthosting.co.za>
In-reply-to
Content
As serhiy pointed out in a comment in PR 3924, setting self->text or self->tail to
NULL might lead to an assertion failure, so we should also prevent the following
assertion failure (and the similar one for tail):
import xml.etree.ElementTree
class X:
    def __del__(self):
        elem.text
        
elem = xml.etree.ElementTree.Element('elem')
elem.text = X()
elem.__setstate__({'tag': None}) # implicitly also set elem.text to None
History
Date User Action Args
2017-10-10 05:34:07Oren Milmansetrecipients: + Oren Milman
2017-10-10 05:34:07Oren Milmansetmessageid: <1507613647.9.0.213398074469.issue31728@psf.upfronthosting.co.za>
2017-10-10 05:34:07Oren Milmanlinkissue31728 messages
2017-10-10 05:34:07Oren Milmancreate