Message383481
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. |
|
Date |
User |
Action |
Args |
2020-12-21 02:11:48 | goodmami | set | recipients:
+ goodmami, docs@python |
2020-12-21 02:11:48 | goodmami | set | messageid: <1608516708.54.0.399014748226.issue42700@roundup.psfhosted.org> |
2020-12-21 02:11:48 | goodmami | link | issue42700 messages |
2020-12-21 02:11:48 | goodmami | create | |
|