Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
gh-145568: rename NEWS entry and expand description
Replace placeholder gh-issue-NNNNN with the real issue number 145568.
Expand the NEWS text to cover all 7 areas fixed by the parent commit
(struct-field races, child-list mutations, property getters/setters,
__copy__, __deepcopy__, TreeBuilder end-tag handling, and the
borrowed-reference fix in the expat entity handler).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
  • Loading branch information
Sebastian Ozimkowski and claude committed Mar 5, 2026
commit 41048a9c114ad9ae5ccc916c59b9ee71e349aecc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Fix multiple data races in :mod:`xml.etree.ElementTree` for the free-threaded
build. Add :c:macro:`Py_BEGIN_CRITICAL_SECTION` guards and ``_lock_held``
split-function patterns throughout ``Modules/_elementtree.c`` to protect
:class:`~xml.etree.ElementTree.Element` struct fields, child-list mutations
(:meth:`~xml.etree.ElementTree.Element.append`,
:meth:`~xml.etree.ElementTree.Element.insert`,
:meth:`~xml.etree.ElementTree.Element.clear`), property
getters/setters, :meth:`~xml.etree.ElementTree.Element.__copy__`,
:meth:`~xml.etree.ElementTree.Element.__deepcopy__`, and
:class:`~xml.etree.ElementTree.TreeBuilder` end-tag handling.
Also replace a :c:func:`PyDict_GetItemWithError` borrowed-reference lookup
in the expat entity handler with :c:func:`PyDict_GetItemRef`.

This file was deleted.

Loading