Switch statements again
Skip Montanaro
skip at pobox.com
Wed Jan 15 18:15:46 EST 2003
More information about the Python-list mailing list
Wed Jan 15 18:15:46 EST 2003
- Previous message (by thread): Switch statements again
- Next message (by thread): Switch statements again
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Switch statements again
- Next message (by thread): Switch statements again
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list