Skip to content

Conversation

@mzagozen
Copy link
Collaborator

The repr of an xml.Node only includes arguments where the value differs
from the default.

The str of an xml.Node is just the encoded XML document.

@mzagozen mzagozen marked this pull request as draft August 28, 2025 13:33
@mzagozen mzagozen marked this pull request as ready for review August 28, 2025 13:47
The repr of an xml.Node only includes arguments where the value differs
from the default.

Do not print positional arg name in repr(xml.Node)

"tag" is a non-optional positional argument, it makes for cleaner repr()
output if we also omit the name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants