Switch statements again

Skip Montanaro skip at pobox.com
Wed Jan 15 18:15:46 EST 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