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 Jim Fasarakis-Hilliard
Recipients Jim Fasarakis-Hilliard
Date 2017-05-29.14:49:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496069369.64.0.23526837777.issue30507@psf.upfronthosting.co.za>
In-reply-to
Content
Another splinter issue from issue13349. Currently, Element reports it's a list when remove is called on it:

    from xml.etree.ElementTree import Element
    Element('').remove(Element('')) 

    ValueError: list.remove(x): x not in list

From what I understand, this was done in order for it to conform with the error reporting performed from the pure python implementation of Element. (side note: These also differ regarding the type of value supplied to .remove, the C implementation only wants instances of Element)

The message, imo, is confusing and should be changed to Element.remove(x): x not in Element.
History
Date User Action Args
2017-05-29 14:49:29Jim Fasarakis-Hilliardsetrecipients: + Jim Fasarakis-Hilliard
2017-05-29 14:49:29Jim Fasarakis-Hilliardsetmessageid: <1496069369.64.0.23526837777.issue30507@psf.upfronthosting.co.za>
2017-05-29 14:49:29Jim Fasarakis-Hilliardlinkissue30507 messages
2017-05-29 14:49:29Jim Fasarakis-Hilliardcreate