[Python-Dev] Submitted patch #1014930 to exposes the current parse location in pyexpat (original) (raw)

Dave Cole djc at object-craft.com.au
Thu Aug 26 02:44:07 CEST 2004


Fred L. Drake, Jr. wrote:

On Monday 23 August 2004 10:53 pm, Dave Cole wrote: > Expat supplies the XMLGetCurrentLineNumber, XMLGetCurrentColumnNumber, > and XMLGetCurrentByteIndex functions to obtain the current parse > location. The patch exposes these as the following respective members > of the xml.parsers.expat.XMLParser object; CurrentLineNumber, > CurrentColumnNumber, CurrentByteIndex.

This sounds like a good idea to me. Please post the patch on SF and assign to me.

I have committed the patch after adding the suggestions from the reviewer.

-- http://www.object-craft.com.au



More information about the Python-Dev mailing list