diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2021-12-31 09:57:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-31 09:57:00 (GMT) |
commit | e18d81569fa0564f3bc7bcfd2fce26ec91ba0a6e (patch) | |
tree | 9e050cf78ed7da357ccafb5e81d341fddb4e2fa1 /Doc/library/pyexpat.rst | |
parent | 35628e4cde71e54afe12aea50c74069afe2c3389 (diff) | |
download | cpython-e18d81569fa0564f3bc7bcfd2fce26ec91ba0a6e.zip cpython-e18d81569fa0564f3bc7bcfd2fce26ec91ba0a6e.tar.gz cpython-e18d81569fa0564f3bc7bcfd2fce26ec91ba0a6e.tar.bz2 |
bpo-45321: Add missing error codes to module `xml.parsers.expat.errors` (GH-30188)
The idea is to ensure that module `xml.parsers.expat.errors`
contains all known error codes and messages,
even when CPython is compiled or run with an outdated version of libexpat.
https://bugs.python.org/issue45321
Diffstat (limited to 'Doc/library/pyexpat.rst')
-rw-r--r-- | Doc/library/pyexpat.rst | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst index 034e579..d6581e2 100644 --- a/Doc/library/pyexpat.rst +++ b/Doc/library/pyexpat.rst @@ -867,6 +867,40 @@ The ``errors`` module has the following attributes: .. data:: XML_ERROR_SUSPEND_PE +.. data:: XML_ERROR_RESERVED_PREFIX_XML + + An attempt was made to + undeclare reserved namespace prefix ``xml`` + or to bind it to another namespace URI. + + +.. data:: XML_ERROR_RESERVED_PREFIX_XMLNS + + An attempt was made to declare or undeclare reserved namespace prefix ``xmlns``. + + +.. data:: XML_ERROR_RESERVED_NAMESPACE_URI + + An attempt was made to bind the URI of one the reserved namespace + prefixes ``xml`` and ``xmlns`` to another namespace prefix. + + +.. data:: XML_ERROR_INVALID_ARGUMENT + + This should not be reported to Python applications. + + +.. data:: XML_ERROR_NO_BUFFER + + This should not be reported to Python applications. + + +.. data:: XML_ERROR_AMPLIFICATION_LIMIT_BREACH + + The limit on input amplification factor (from DTD and entities) + has been breached. + + .. rubric:: Footnotes .. [1] The encoding string included in XML output should conform to the |