Ron Adam wrote:
>
> In my program I have a lot of statements that append elements, but
> sometimes I don't want to append the element so it requres an if
> statement to check it, and that requires assigning the returned element
> from a function to a name or calling the funtion twice.
>
>
In my program I have a lot of statements that append elements, but
sometimes I don't want to append the element so it requres an if
statement to check it, and that requires assigning the returned element
from a function to a name or calling the funtion twice.
e = ET.Element('name')
e