from xml.etree import ElementTree as etree for tp in etree.Element, etree._Element, etree._ElementInterface: print(id(tp))