| commit | 4115996342278de7c2a1b59ac348322e7a4e9072 | [log] [tgz] |
|---|---|---|
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Wed May 26 16:13:17 2021 -0700 |
| committer | GitHub <noreply@github.com> | Thu May 27 01:13:17 2021 +0200 |
| tree | d71f07b149ccef8244cdb10b5e15ef1d4a62d411 | |
| parent | 150a8e8a3edbbed12b98c8f22e2972cd47fd3ba5 [diff] |
bpo-42161: mathmodule.c: move _PyLong_GetOne() loop invariant (GH-26391) (GH-26393) Move _PyLong_GetZero() and _PyLong_GetOne() loop invariants outside loops in functions: * math.comb() * math.gcd() * math.lcm() * math.perm() (cherry picked from commit 3e7ee02327db13e4337374597cdc4458ecb9e3ad) Co-authored-by: Victor Stinner <vstinner@python.org>