SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

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.
R
Raymond Hettinger committed
05595e9d73b2c05fcd9492cf8f5d126282b82053
Parent: b2e0b92