Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
Open
Description
The type of the Expat parser is referred everywhere asxmlparser, although no anchor for this reference is defined. But this type is actually exposed in thepyexpat (public API isxml.parsers.expat) module asXMLParserType since 2000 (4ba298c). The class name isxmlparser.
>>>import xml.parsers.expat>>> xml.parsers.expat.__name__'xml.parsers.expat'>>> xml.parsers.expat.XMLParserType<class 'pyexpat.xmlparser'>>>> xml.parsers.expat.XMLParserType.__name__'xmlparser'>>> xml.parsers.expat.XMLParserType.__qualname__'xmlparser'>>> xml.parsers.expat.XMLParserType.__module__'pyexpat'
I was planned to add an anchor for thexmlparser class, but since it is available asXMLParserType, should not we simply change its name and all references in the documentation toXMLParserType? Or add an aliasxmlparser? (the question is why it was not used from the beginning.)
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Todo