summaryrefslogtreecommitdiffstats
path: root/Lib/mhlib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-03-26 11:16:55 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-03-26 11:16:55 (GMT)
commit01c9f8c35f583338e3638906ceeef9d2f29a0254 (patch)
tree46ba5f9ad31ed05eb22195b0e20ccd78b90e2bc5 /Lib/mhlib.py
parent707483fdef1dcb91e5239f7dd16db509ce2737c7 (diff)
downloadcpython-01c9f8c35f583338e3638906ceeef9d2f29a0254.zip
cpython-01c9f8c35f583338e3638906ceeef9d2f29a0254.tar.gz
cpython-01c9f8c35f583338e3638906ceeef9d2f29a0254.tar.bz2
Simple optimizations:
* pre-build a single identity function for the fixup function * pre-build membership tests in dictionaries instead of in-line tuples * assign len() to a local variable * assign append() methods to a local variable * use xrange() instead of range() * replace "x<<1" with "x+x"
Diffstat (limited to 'Lib/mhlib.py')
0 files changed, 0 insertions, 0 deletions