Message294697
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. |
|
Date |
User |
Action |
Args |
2017-05-29 14:49:29 | Jim Fasarakis-Hilliard | set | recipients:
+ Jim Fasarakis-Hilliard |
2017-05-29 14:49:29 | Jim Fasarakis-Hilliard | set | messageid: <1496069369.64.0.23526837777.issue30507@psf.upfronthosting.co.za> |
2017-05-29 14:49:29 | Jim Fasarakis-Hilliard | link | issue30507 messages |
2017-05-29 14:49:29 | Jim Fasarakis-Hilliard | create | |
|