Switch statements again

Skip Montanaro skip at pobox.com
Thu Jan 16 00:15:46 CET 2003


    Jack> Comprehensions always hurt readability (ALWAYS), and we don't need
    Jack> the speedup here so we do it explicitly.

1. You can ALWAYS tell when someone is overgeneralizing if they use ALWAYS
   or NEVER. ;-)

2. List comprehensions provide little, if any, speedup over an explicit for
   loop.

Skip





More information about the Python-list mailing list