[Python-Dev] PEP-xxx: Unification of for statement and list-comp syntax (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Mon May 22 02:22:03 CEST 2006
- Previous message: [Python-Dev] PEP-xxx: Unification of for statement and list-compsyntax
- Next message: [Python-Dev] PEP-xxx: Unification of for statement and list-comp syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Heiko Wundram wrote:
for node in tree: if not node.haschildren(): continue
Er, you do realise that can be written more straightforwardly as
for node in tree: if node.haschildren():
-- Greg
- Previous message: [Python-Dev] PEP-xxx: Unification of for statement and list-compsyntax
- Next message: [Python-Dev] PEP-xxx: Unification of for statement and list-comp syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]