MCPcopy Index your code
hub / github.com/python-openxml/python-docx / __iter__

Method __iter__

src/docx/text/tabstops.py:39–45  ·  view source on GitHub ↗

Generate a TabStop object for each of the w:tab elements, in XML document order.

(self)

Source from the content-addressed store, hash-verified

37 return TabStop(tab)
38
39 def __iter__(self):
40 """Generate a TabStop object for each of the w:tab elements, in XML document
41 order."""
42 tabs = self._pPr.tabs
43 if tabs is not None:
44 for tab in tabs.tab_lst:
45 yield TabStop(tab)
46
47 def __len__(self):
48 tabs = self._pPr.tabs

Callers

nothing calls this directly

Calls 1

TabStopClass · 0.85

Tested by

no test coverage detected