💾 Archived View for tris.fyi › pydoc › _elementtree captured on 2022-03-01 at 16:00:06. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

➡️ Next capture (2023-01-29)

-=-=-=-=-=-=-

Back to module index

Go to module by name

_elementtree

This module has no docstring.

Classes

Element

append(self, subelement, /)
clear(self, /)
extend(self, elements, /)
find(self, /, path, namespaces=None)
findall(self, /, path, namespaces=None)
findtext(self, /, path, default=None, namespaces=None)
get(self, /, key, default=None)
insert(self, index, subelement, /)
items(self, /)
iter(self, /, tag=None)
iterfind(self, /, path, namespaces=None)
itertext(self, /)
keys(self, /)
makeelement(self, tag, attrib, /)
remove(self, subelement, /)
set(self, key, value, /)
attrib = <attribute 'attrib' of 'xml.etree.ElementTree.Element' objects>
  A dictionary containing the element's attributes
tag = <attribute 'tag' of 'xml.etree.ElementTree.Element' objects>
  A string identifying what kind of data this element represents
tail = <attribute 'tail' of 'xml.etree.ElementTree.Element' objects>
  A string of text directly after the end tag, or None
text = <attribute 'text' of 'xml.etree.ElementTree.Element' objects>
  A string of text directly after the start tag, or None

ParseError

with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>
filename = <member 'filename' of 'SyntaxError' objects>
  exception filename
lineno = <member 'lineno' of 'SyntaxError' objects>
  exception lineno
msg = <member 'msg' of 'SyntaxError' objects>
  exception msg
offset = <member 'offset' of 'SyntaxError' objects>
  exception offset
print_file_and_line = <member 'print_file_and_line' of 'SyntaxError' objects>
  exception print_file_and_line
text = <member 'text' of 'SyntaxError' objects>
  exception text

TreeBuilder

close(self, /)
comment(self, text, /)
data(self, data, /)
end(self, tag, /)
pi(self, target, text=None, /)
start(self, tag, attrs, /)

XMLParser

close(self, /)
feed(self, data, /)
entity = <member 'entity' of 'xml.etree.ElementTree.XMLParser' objects>
target = <member 'target' of 'xml.etree.ElementTree.XMLParser' objects>
version = <attribute 'version' of 'xml.etree.ElementTree.XMLParser' objects>

Functions

SubElement

SubElement(...)