Heiko Wundram wrote:

>       for node in tree:
>           if not node.haschildren():
>               continue
>           <do something with node>

Er, you do realise that can be written more straightforwardly as

   for node in tree:
     if node.haschildren():
       <do something with node>

--
Greg
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to