I'm looking for find the line number of the element where I'm in my etree from xml.etree.ElementTree. I saw a website (https://github.com/daveti/pyet/blob/master/Python-2.7.8/Lib/xml/etree/ElementTree.py) where the class ElementTree was re-writen but I can't modify libs for my job (the script must be re-usable everywhere). So my question is can I get my lineNumber through self._parser.CurrentLineNumber and my ElementTree in code directly ?
Thanks in advance.