Lines Matching refs:_last
1381 self._last = None # last element
1396 assert self._last is not None, "missing toplevel element"
1397 return self._last
1401 if self._last is not None:
1404 assert self._last.tail is None, "internal error (tail)"
1405 self._last.tail = text
1407 assert self._last.text is None, "internal error (text)"
1408 self._last.text = text
1430 self._last = elem = self._factory(tag, attrs)
1446 self._last = self._elem.pop()
1447 assert self._last.tag == tag,\
1449 self._last.tag, tag)
1451 return self._last