]> granicus.if.org Git - python/commit
#22464: Speed up common Fraction operations by special-casing several
authorGeorg Brandl <georg@python.org>
Wed, 24 Sep 2014 06:37:55 +0000 (08:37 +0200)
committerGeorg Brandl <georg@python.org>
Wed, 24 Sep 2014 06:37:55 +0000 (08:37 +0200)
commit40f9735486a847130eb52185659a278cf369bb9e
tree75849d9408b3b2876c00d242b19ef4f224976a5b
parent02d39c24c44224e94cb1bd65be1b6498b363fd78
#22464: Speed up common Fraction operations by special-casing several
operations for int-type arguments: constructor and equality test.

Also avoid redundant property lookups in addition and subtraction.
Lib/fractions.py