This patch adds CurrentByteIndex, CurrentColumnNumber, CurrentLineNumber members to the xml.parsers.expat.XMLParser object which respectively wrap the XML_GetCurrentByteIndex, XML_GetCurrentLineNumber, and XML_GetCurrentColumnNumber expat functions.
Logged In: YES user_id=908995 The patch looks good to me after a quick glance and test run. Maybe add something to the test suite to exercise these attributes? It should be as easy as adding print statements to a handler or two (the test relies heavily on comparing the output to a known one). Most of the other attributes aren't tested-for by the test suite, though. \versionadded in the docs might be nice, too--just once, after the paragraph introducing them.
Logged In: YES user_id=28658 Have added a unit test to check that the Current* members do return something useful for parser events. Decided against testing character data events as there can be more than one per section of character data - this might be fragile in the face of newer expat versions. Oh, also added a \versionadded. Will apply this patch.