[Python-checkins] python/dist/src/Misc NEWS,1.1119,1.1120

Michael Hudson mwh at python.net
Tue Aug 31 00:38:04 CEST 2004


tim_one at users.sourceforge.net writes:

> Update of /cvsroot/python/python/dist/src/Misc
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27357/Misc
>
> Modified Files:
> 	NEWS 
> Log Message:
> SF patch 936813: fast modular exponentiation
>
> This checkin is adapted from part 2 (of 3) of Trevor Perrin's patch set.
>
> BACKWARD INCOMPATIBILITY:  SHIFT must now be divisible by 5.  AFAIK,
> nobody will care.  long_pow() could be complicated to worm around that,
> if necessary.
>
> long_pow():
>   - BUGFIX:  This leaked the base and power when the power was negative
>     (and so the computation delegated to float pow).

And no test?  I'm pretty sure this can't have a test in the test
suite, or I'd have found it before now...

Cheers,
mwh

-- 
  ARTHUR:  Why should a rock hum?
    FORD:  Maybe it feels good about being a rock.
                    -- The Hitch-Hikers Guide to the Galaxy, Episode 8


More information about the Python-checkins mailing list