def _get_elements(self):
for index, el in enumerate(self._elements):<EOL><INDENT>if isinstance(el, tuple):<EOL><INDENT>el = PathElement(*el)<EOL>self._elements[index] = el<EOL><DEDENT>yield el<EOL><DEDENT>
Yields all elements as PathElements