◐ Shell
clean mode source ↗

gh-145056: Accept frozendict in xml.etree by vstinner · Pull Request #145508 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

vstinner

merged 2 commits into

Mar 5, 2026

Conversation

@vstinner

@vstinner vstinner commented

Mar 4, 2026

edited by github-actions Bot

Loading

Element and SubElement of xml.etree.ElementTree now also accept
frozendict as attrib.

@vstinner

I prefer to wait until #145517 is merged before merging this PR, so I mark this PR as a draft for now.

@vstinner vstinner marked this pull request as ready for review

March 5, 2026 11:53

@vstinner

I prefer to wait until #145517 is merged before merging this PR, so I mark this PR as a draft for now.

The situation looks more complicated than what I expected. So I merged this change with the temporary solution: _PyDict_CopyAsDict() function.

ljfp pushed a commit to ljfp/cpython that referenced this pull request

Apr 25, 2026
Element and SubElement of xml.etree.ElementTree now also accept
frozendict for attrib.

Export _PyDict_CopyAsDict() function.

Labels

1 participant

@vstinner