Add *subelement* to the end of this element. The new element will appear in document order after the last existing subelement (or directly after the text, if it's the first subelement), but before the end tag for this element.
(self, subelement)
| 220 | del self._children[index] |
| 221 | |
| 222 | def append(self, subelement): |
| 223 | """Add *subelement* to the end of this element. |
| 224 | |
| 225 | The new element will appear in document order after the last existing |
| 226 | subelement (or directly after the text, if it's the first subelement), |
| 227 | but before the end tag for this element. |
| 228 | |
| 229 | """ |
| 230 | self._assert_is_element(subelement) |
| 231 | self._children.append(subelement) |
| 232 | |
| 233 | def extend(self, elements): |
| 234 | """Append subelements from a sequence. |