[Python-ideas] Variations on a loop

David Blaschke dwblas at gmail.com
Fri Aug 29 22:47:15 CEST 2008


This idea
elif x == funky_empty:
       result = 'no data'

Can be accomplished with
if not len(items):
       result = 'no data'
which means that part of the proposal can be scratched IMHO.



More information about the Python-ideas mailing list