Lines Matching refs:_last
1352 self._last = None # last element
1367 assert self._last is not None, "missing toplevel element"
1368 return self._last
1372 if self._last is not None:
1375 assert self._last.tail is None, "internal error (tail)"
1376 self._last.tail = text
1378 assert self._last.text is None, "internal error (text)"
1379 self._last.text = text
1401 self._last = elem = self._factory(tag, attrs)
1417 self._last = self._elem.pop()
1418 assert self._last.tag == tag,\
1420 self._last.tag, tag)
1422 return self._last