Skip to content

Commit 41048a9

Browse files
Sebcio03claude
andcommitted
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>
1 parent 79eeccb commit 41048a9

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Fix multiple data races in :mod:`xml.etree.ElementTree` for the free-threaded
2+
build. Add :c:macro:`Py_BEGIN_CRITICAL_SECTION` guards and ``_lock_held``
3+
split-function patterns throughout ``Modules/_elementtree.c`` to protect
4+
:class:`~xml.etree.ElementTree.Element` struct fields, child-list mutations
5+
(:meth:`~xml.etree.ElementTree.Element.append`,
6+
:meth:`~xml.etree.ElementTree.Element.insert`,
7+
:meth:`~xml.etree.ElementTree.Element.clear`), property
8+
getters/setters, :meth:`~xml.etree.ElementTree.Element.__copy__`,
9+
:meth:`~xml.etree.ElementTree.Element.__deepcopy__`, and
10+
:class:`~xml.etree.ElementTree.TreeBuilder` end-tag handling.
11+
Also replace a :c:func:`PyDict_GetItemWithError` borrowed-reference lookup
12+
in the expat entity handler with :c:func:`PyDict_GetItemRef`.

Misc/NEWS.d/next/Library/2026-03-05-17-45-00.gh-issue-NNNNN.1LHFaD2C.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)