Lines Matching refs:_last
1377 self._last = None # last element
1386 assert self._last is not None, "missing toplevel element"
1387 return self._last
1391 if self._last is not None:
1394 assert self._last.tail is None, "internal error (tail)"
1395 self._last.tail = text
1397 assert self._last.text is None, "internal error (text)"
1398 self._last.text = text
1413 self._last = elem = self._factory(tag, attrs)
1427 self._last = self._elem.pop()
1428 assert self._last.tag == tag,\
1430 self._last.tag, tag)
1432 return self._last