Skip to content

Please expose Expat >=2.6.0 API function XML_SetReparseDeferralEnabled #115398

Closed
@hartwork

Description

@hartwork

Feature or enhancement

Proposal:

Hello CPython team! 👋

Expat 2.6.0 introduced a new function XML_SetReparseDeferralEnabled that currently neither xml.parsers.expat.XMLParserType of pyexpat nor xml.etree.ElementTree.XMLParser of ElementTree give access to it, so when some Python-based library or application finds themselves in a situation where toggling reparse deferral is beneficial or needed for their scenario in the future, they will not be able to do so with ease or at all.

Please note that this is a sibling ticket to #90949 in some sense and implementations could be combined or done in one go, potentially.

Also please note that…

I cannot provide a pull request on the topic economically myself unfortunately, but I am happy to support any related efforts (including voice calls on the topic as needed). Thanks in advance!

Best, Sebastian

CC #90949
CC #115133

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions