[New-bugs-announce] [issue17989] ElementTree.Element broken attribute setting

Jakub Wilk report at bugs.python.org
Thu May 16 00:46:51 CEST 2013

New submission from Jakub Wilk:

Setting attributes on ElementTree.Element objects is broken: it succeeds without exception, but then the following statement fails with AttributeError (unless that statement sets an Element's attribute too):

$ python3.3 test-element-setattr.py 
Hello world!Traceback (most recent call last):
  File "test-element-setattr.py", line 6, in <module>
    print('Hello world!')
AttributeError: ham2

components: Library (Lib)
files: test-element-setattr.py
messages: 189321
nosy: jwilk
priority: normal
severity: normal
status: open
title: ElementTree.Element broken attribute setting
versions: Python 3.3
Added file: http://bugs.python.org/file30272/test-element-setattr.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list