Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify the documentation of the restrictions
  • Loading branch information
serhiy-storchaka committed Sep 14, 2026
commit 8fd4fc7c77fbd5703005cc9599140eec54d14d12
5 changes: 2 additions & 3 deletions Doc/library/xml.etree.elementtree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -739,9 +739,8 @@ Functions
*prefix* is a namespace prefix. *uri* is a namespace uri. Tags and
attributes in this namespace will be serialized with the given prefix, if at
all possible.
:exc:`ValueError` is raised if *prefix* is not a valid prefix,
is reserved (``xmlns`` and ``ns`` followed by digits),
or if *prefix* is ``xml`` and *uri* is not the XML namespace or vice versa.
:exc:`ValueError` is raised if *prefix* is invalid or reserved
(``ns`` followed by digits is reserved for the serializer).

.. versionadded:: 3.2

Expand Down
Loading