commit | 05595e9d73b2c05fcd9492cf8f5d126282b82053 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Feb 27 00:05:31 2003 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Feb 27 00:05:31 2003 +0000 |
tree | 89d4fc53593a8579415721fa50b06ddc910450a3 | |
parent | b2e0b92ef16b0a4752fa32822af986486439b80f [diff] |
Module review: * Changed variable name from 'list' to 'flist'. * Replaced "while 1" with "while True". * Replaced if/elif/elif/elif structure with a shorter and faster dispatch dictionary that maps attrs to methods. * Simplified and sped comparison logic by using ifilter, ifilterfalse, and dict.fromkeys. * Used True and False rather than 1 and 0.