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

Tim Peters tim.peters at gmail.com
Tue Aug 31 01:31:26 CEST 2004


>> long_pow():
>> - BUGFIX: This leaked the base and power when the power was negative
>> (and so the computation delegated to float pow).

[mwh]
> 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...

Now that you mention it, I don't see any tests for
__builtin__.pow(int_or_long, negative_int_or_long), although they may
be spelled with infix **.
In any case, the BUGFIX claim there was a red herring -- the leaks
were actually introduced by the patch I was reviewing.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /