Author oz.tamir
Recipients oz.tamir
Date 2015-05-28.07:46:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432799172.33.0.667430736974.issue24312@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-05-28 07:46:12oz.tamirsetrecipients: + oz.tamir
2015-05-28 07:46:12oz.tamirsetmessageid: <1432799172.33.0.667430736974.issue24312@psf.upfronthosting.co.za>
2015-05-28 07:46:12oz.tamirlinkissue24312 messages
2015-05-28 07:46:12oz.tamircreate