💾 Archived View for tris.fyi › pydoc › _elementtree captured on 2023-01-29 at 03:43:21. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

🚧 View Differences

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

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>
end_lineno = <member 'end_lineno' of 'SyntaxError' objects>
  exception end lineno
end_offset = <member 'end_offset' of 'SyntaxError' objects>
  exception end offset
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(...)