-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
pyexpat: xmlparser is actually XMLParserType #140771
Copy link
Copy link
Open
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-XML
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-XML
Projects
Status
Todo
The type of the Expat parser is referred everywhere as
xmlparser, although no anchor for this reference is defined. But this type is actually exposed in thepyexpat(public API isxml.parsers.expat) module asXMLParserTypesince 2000 (4ba298c). The class name isxmlparser.I was planned to add an anchor for the
xmlparserclass, 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