[docs] [issue13127] xml.dom.Attr.name is not labeled as read-only

Stefan Behnel report at bugs.python.org
Sun Apr 14 10:14:24 EDT 2019


Stefan Behnel <stefan_ml at behnel.de> added the comment:

The intended interface seems to be to change .name rather than .localName, so yes, that should be documented somewhere.

The implementation seems a bit funny in that a "self._localName", if set, takes precedence, but there doesn't seem to be an official way to set it. The Attr() constructor even takes a "localname" argument, which it then ignores. o_O

----------
components: +XML
stage: test needed -> needs patch
versions: +Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue13127>
_______________________________________


More information about the docs mailing list