> Today you can archive the same effect (but not necessarily with the same > performance) with: > > for node in (x for x in tree if x.haschildren()): > <do something with node> true, but it has different semantic meanings -tomer