SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

gh-144270: Make SubElement parent and tag positional-only (GH-144845)

The C accelerator implementations use PyArg_ParseTuple, which
inherently enforces positional-only parameters. The Python fallback
allowed these as keyword arguments, creating a behavioral mismatch.

Make the tag parameter of Element.__init__ and the parent and tag
parameters of SubElement positional-only to align with the C
accelerator.
N
Neko Asakura committed
afd8113e9d7744e52ae82093628d373d6ecb9897
Parent: 8e9d21c
Committed by GitHub <[email protected]> on 3/30/2026, 4:42:24 PM