Message244283
In Python 3.3, 3.4 and on 3.6.0a0 (default:dfe62f685538) the following snippet:
>>> from xml.dom.minidom import getDOMImplementation
>>> doc = getDOMImplementation().createDocument(None, 'Issues Tracker', None)
>>> tracker = doc.documentElement
>>> new_issue = doc.createElement('issue')
>>> new_issue.setAttribute('id', 10)
>>> tracker.appendChild(new_issue)
>>> with open('file.xml', 'w') as f:
... doc.writexml(f, addindent='\t', newl='\n')
will produce the following exception:
[Traceback]
AttributeError: 'int' object has no attribute 'replace'
which I found to be vague and rather confusing. |
|
Date |
User |
Action |
Args |
2015-05-28 07:46:12 | oz.tamir | set | recipients:
+ oz.tamir |
2015-05-28 07:46:12 | oz.tamir | set | messageid: <1432799172.33.0.667430736974.issue24312@psf.upfronthosting.co.za> |
2015-05-28 07:46:12 | oz.tamir | link | issue24312 messages |
2015-05-28 07:46:12 | oz.tamir | create | |
|