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 ArcRiley
Recipients ArcRiley
Date 2010-02-22.16:36:01
SpamBayes Score 0.017910343
Marked as misclassified No
Message-id <1266856563.54.0.534391635456.issue7990@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import xml.etree.cElementTree as ET
>>> tree = ET.parse('test.xml')
>>> root = tree.getroot()
>>> dir(root)
['!__reduce__', '__class__', '__copy__', '__deepcopy__', '__delattr__', '__delitem__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'append', 'clear', 'find', 'findall', 'findtext', 'get', 'getchildren', 'getiterator', 'insert', 'items', 'keys', 'makeelement', 'remove', 'set']
>>> root.tag
'{http://testnamespace}root'

The tag property is not listed in dir() making ElementTree more difficult to use for those of us with poor memories.
History
Date User Action Args
2010-02-22 16:36:03ArcRileysetrecipients: + ArcRiley
2010-02-22 16:36:03ArcRileysetmessageid: <1266856563.54.0.534391635456.issue7990@psf.upfronthosting.co.za>
2010-02-22 16:36:02ArcRileylinkissue7990 messages
2010-02-22 16:36:01ArcRileycreate