This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jonathan.Gossage
Recipients Jonathan.Gossage, taleinat
Date 2018-10-18.16:22:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539879741.38.0.788709270274.issue35018@psf.upfronthosting.co.za>
In-reply-to
Content
While working on issues bpo-6686 and bpo-9371 I realized that the solution to both involved the use of Sax lexical handlers. Unfortunately, the Python SAX parser does not expose these handlers to the end user, however, support is available in expatreader.py and pyexpat.c.

What is missing is the LexicalHandler class which works the same way as the ContentHandler does for the more common handlers and provides a subclassable interface for these handlers. This class is present in the Java implementation of SAX2 and was also present in Pyxml.

I have already verified privately that this class works exactly as expected and I am working on a PR which will provide the class along with supporting unit tests that verify that the lexical handlers work.
History
Date User Action Args
2018-10-18 16:22:21Jonathan.Gossagesetrecipients: + Jonathan.Gossage, taleinat
2018-10-18 16:22:21Jonathan.Gossagesetmessageid: <1539879741.38.0.788709270274.issue35018@psf.upfronthosting.co.za>
2018-10-18 16:22:21Jonathan.Gossagelinkissue35018 messages
2018-10-18 16:22:21Jonathan.Gossagecreate