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 goodmami
Recipients docs@python, goodmami
Date 2020-12-21.02:11:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608516708.54.0.399014748226.issue42700@roundup.psfhosted.org>
In-reply-to
Content
The documentation for xml.parsers.expat.errors.codes says:

   A dictionary mapping numeric error codes to their string descriptions.

But this is backwards. It should say it maps the string descriptions to the error codes. Likewise, the docs for xml.parsers.expat.errors.messages is backwards.

The other references to these dictionaries appear correct. For instance, under ExpatError.code:

   The :mod:`~xml.parsers.expat.errors` module also provides error message
   constants and a dictionary :data:`~xml.parsers.expat.errors.codes` mapping
   these messages back to the error codes, see below.

This issue appears to be present in the docs for all available versions.
History
Date User Action Args
2020-12-21 02:11:48goodmamisetrecipients: + goodmami, docs@python
2020-12-21 02:11:48goodmamisetmessageid: <1608516708.54.0.399014748226.issue42700@roundup.psfhosted.org>
2020-12-21 02:11:48goodmamilinkissue42700 messages
2020-12-21 02:11:48goodmamicreate