◐ Shell
clean mode source ↗

Add missing xmlparser attributes: namespace_prefixes, ordered_attributes, specified_attributes, intern by Copilot · Pull Request #6494 · RustPython/RustPython

- Added namespace_prefixes, ordered_attributes, specified_attributes (boolean attributes)
- Added intern dictionary attribute
- Added stub handlers for all missing handler types to ensure compatibility
- Created bool_property macro to ensure boolean attributes are converted correctly

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
- Tests for buffer_text, namespace_prefixes, ordered_attributes, and specified_attributes now pass

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
- Use proper error propagation in bool_property setter instead of unwrap_or
- Add comment explaining the purpose of the intern dictionary attribute

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>

Copilot AI changed the title [WIP] Fix AttributeError in xonsh with rustpython Add missing xmlparser attributes: namespace_prefixes, ordered_attributes, specified_attributes, intern

Dec 24, 2025

@github-actions

youknowone

These tests now pass with the added xmlparser attributes.

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>

coderabbitai[bot]

youknowone

@youknowone youknowone deleted the copilot/fix-attributeerror-xmlparser branch

December 25, 2025 00:10