MCPcopy Index your code
hub / github.com/python/cpython / items

Method items

Lib/xml/etree/ElementTree.py:366–375  ·  view source on GitHub ↗

Get element attributes as a sequence. The attributes are returned in arbitrary order. Equivalent to attrib.items(). Return a list of (name, value) tuples.

(self)

Source from the content-addressed store, hash-verified

364 return self.attrib.keys()
365
366 def items(self):
367 """Get element attributes as a sequence.
368
369 The attributes are returned in arbitrary order. Equivalent to
370 attrib.items().
371
372 Return a list of (name, value) tuples.
373
374 """
375 return self.attrib.items()
376
377 def iter(self, tag=None):
378 """Create tree iterator.

Callers 8

test_attribMethod · 0.95
iterfindFunction · 0.45
_namespacesFunction · 0.45
_serialize_xmlFunction · 0.45
_serialize_htmlFunction · 0.45
register_namespaceFunction · 0.45
__init__Method · 0.45
_startMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_attribMethod · 0.76