This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author obfusk
Recipients corona10, eli.bendersky, obfusk, scoder, serhiy.storchaka
Date 2020-10-27.19:27:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> specified_attributes = True is also set in xml.dom.expatbuilder.

That's good to know and should perhaps be addressed as well.

> Should not it be set to true in the C implementation of ElementTree?

That would break existing code.  Including mine.

I also think the current behaviour of the C implementation makes a lot more sense, especially as there is currently no way to request the alternative.

I think using specified_attributes=False as the default behaviour for both implementations is the best solution.  But I certainly would not oppose adding e.g. a keyword argument to override the default behaviour for those who would prefer the alternative.
Date User Action Args
2020-10-27 19:27:44obfusksetrecipients: + obfusk, scoder, eli.bendersky, serhiy.storchaka, corona10
2020-10-27 19:27:44obfusksetmessageid: <>
2020-10-27 19:27:44obfusklinkissue42151 messages
2020-10-27 19:27:44obfuskcreate