Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pyexpat: xmlparser is actually XMLParserType #140771

Open
Labels
3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixesdocsDocumentation in the Doc dirextension-modulesC modules in the Modules dirtopic-XML
@serhiy-storchaka

Description

@serhiy-storchaka

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

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixesdocsDocumentation in the Doc dirextension-modulesC modules in the Modules dirtopic-XML

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp