[New-bugs-announce] [issue36685] C implementation of xml.etree.ElementTree does not make a copy of attrib argument when creating new Element

Gordon P. Hemsley report at bugs.python.org
Sat Apr 20 20:07:40 EDT 2019


New submission from Gordon P. Hemsley <gphemsley at gphemsley.org>:

In the process of investigating and writing tests for issue32424, I discovered that the C implementation of xml.etree.ElementTree does not make a copy of the attrib argument when creating a new element, allowing the attributes of the element to be modified outside of creation.

The Python implementation does not have this problem.

----------
components: Library (Lib), XML
messages: 340590
nosy: asvetlov, eli.bendersky, gphemsley, mdk, p-ganssle, r.david.murray, scoder, serhiy.storchaka, thatiparthy
priority: normal
severity: normal
status: open
title: C implementation of xml.etree.ElementTree does not make a copy of attrib argument when creating new Element
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36685>
_______________________________________


More information about the New-bugs-announce mailing list