#!/usr/local/bin/python2 import collections import xml.etree.ElementTree as et r = et.XML('') print dir(r) print isinstance(r, collections.Iterator)