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 urjitsb87
Recipients dillona, docs@python, ezio.melotti, terry.reedy, urjitsb87
Date 2011-12-03.09:56:29
SpamBayes Score 3.9211967e-12
Marked as misclassified No
Message-id <1322906190.67.0.159266521622.issue13127@psf.upfronthosting.co.za>
In-reply-to
Content
Using the same code example as above, I added a simple print statement in the set method being defined in the defproperty and it fired correctly for -

a.childNodes[0].attributes='something'
**My print statement:**in defproperty set for name: attributes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/urjit/code/mercurial/python/cpython/Lib/xml/dom/minicompat.py", line 106, in set
    "attempt to modify read-only attribute " + repr(name))
xml.dom.NoModificationAllowedErr: attempt to modify read-only attribute 'attributes'

The getter seems to work fine for localName but the setter somehow does not fire.

I have a fix for this but when I am running the test on my ubuntu vm, it doesnt go beyond test_sndhdr. However, when I run that test directly, it is successful. I can submit a patch if this problem is fixed.
History
Date User Action Args
2011-12-03 09:56:30urjitsb87setrecipients: + urjitsb87, terry.reedy, ezio.melotti, docs@python, dillona
2011-12-03 09:56:30urjitsb87setmessageid: <1322906190.67.0.159266521622.issue13127@psf.upfronthosting.co.za>
2011-12-03 09:56:30urjitsb87linkissue13127 messages
2011-12-03 09:56:29urjitsb87create