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 sping
Recipients sping
Date 2021-09-29.12:49:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632919785.51.0.148853477081.issue45321@roundup.psfhosted.org>
In-reply-to
Content
(This has been mention at https://bugs.python.org/issue44394#msg395642 before, but issue 44394 has been closed as fixed despite that part being forgotten, hence the dedicated ticket...)

Module `xml.parsers.expat.errors` and its docs need 6 more error code entries to be complete:

  /* Added in 2.0. */
  38 XML_ERROR_RESERVED_PREFIX_XML
  39 XML_ERROR_RESERVED_PREFIX_XMLNS
  40 XML_ERROR_RESERVED_NAMESPACE_URI

  /* Added in 2.2.1. */
  41 XML_ERROR_INVALID_ARGUMENT

  /* Added in 2.3.0. */
  42 XML_ERROR_NO_BUFFER

  /* Added in 2.4.0. */
  43 XML_ERROR_AMPLIFICATION_LIMIT_BREACH

The source for this is:
- https://github.com/libexpat/libexpat/blob/72d7ce953827fe08a56b8ea64092f208be6ffc5b/expat/lib/expat.h#L120-L129

The place where additions is needed is:
- https://github.com/python/cpython/blob/f76889a88720b56c8174f26a20a8e676a460c7a6/Modules/pyexpat.c#L1748
- https://github.com/python/cpython/blame/f76889a88720b56c8174f26a20a8e676a460c7a6/Doc/library/pyexpat.rst#L867

Thanks in advance.
History
Date User Action Args
2021-09-29 12:49:45spingsetrecipients: + sping
2021-09-29 12:49:45spingsetmessageid: <1632919785.51.0.148853477081.issue45321@roundup.psfhosted.org>
2021-09-29 12:49:45spinglinkissue45321 messages
2021-09-29 12:49:45spingcreate