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

Ezio Melotti report at bugs.python.org
Sun Oct 9 23:48:42 CEST 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

localName is defined with defproperty() in Lib/xml/dom/minidom.py:464 and looking at the definition of defproperty() in  Lib/xml/dom/minicompat.py:97 I think this is supposed to raise an xml.dom.NoModificationAllowedErr exception when someone tries to write on the attribute.  This doesn't seem to happen though.
OTOH 'name' doesn't use defproperty(), so technically it's writable, expect that writing on it has no effect.
This should still be documented, and it would also be good to figure out what's going on with defproperty().

----------
components: +Library (Lib)
keywords: +easy
nosy: +ezio.melotti
stage:  -> test needed
versions: +Python 2.7

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


More information about the docs mailing list