You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Calling ElementTree.write on an ElementTree instance where ElementTree._root is the wrong type causes possible data loss #135640
tree = xml.etree.ElementTree.ElementTree(element = "") # element should be an ElementTree.Element object or None
tree.write("file.xml") # This appropriately causes a traceback, but blanks file.xml if it exists
Activity
Make iselement stricter + incorporate feedback
gh-135640: Adds more type checking to ElementTree (GH-135643)
pythongh-135640: Adds more type checking to ElementTree (pythonGH-135643
pythongh-135640: Adds more type checking to ElementTree (pythonGH-135643
[3.13] gh-135640: Adds more type checking to ElementTree (GH-135643) (G…
[3.14] gh-135640: Adds more type checking to ElementTree (GH-135643) (G…
serhiy-storchaka commentedon Jul 3, 2025
Thank you for your contribution @abstractedfox.
There is also other problem here. See #136231.
pythongh-135640: Adds more type checking to ElementTree (pythonGH-135643
pythongh-135640: Adds more type checking to ElementTree (pythonGH-135643
pythongh-135640: Adds more type checking to ElementTree (pythonGH-135643
pythongh-135640: Adds more type checking to ElementTree (pythonGH-135643
pythongh-135640: Adds more type checking to ElementTree (pythonGH-135643
Temporarily patch in libplacebo upstream Python >=3.13 compatibility fix
Temporarily patch in libplacebo upstream Python >=3.13 compatibility fix
Upgrade libplacebo to commit including fix for Python 3.13
Upgrade libplacebo to commit including fix for Python 3.13
Upgrade libplacebo to commit including fix for Python 3.13
Upgrade libplacebo to commit including fix for Python 3.13
Upgrade libplacebo to commit including fix for Python 3.13
Upgrade libplacebo to commit including fix for Python 3.13
Upgrade libplacebo to commit including fix for Python 3.13
Upgrade libplacebo to commit including fix for Python 3.13
Upgrade libplacebo to commit including fix for Python 3.13