[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>
<http://bugs.python.org/issue17989>
_______________________________________


More information about the New-bugs-announce mailing list