Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 26, 2021

Move _PyLong_GetZero() and _PyLong_GetOne() loop invariants outside
loops in functions:

  • math.comb()
  • math.gcd()
  • math.lcm()
  • math.perm()
    (cherry picked from commit 3e7ee02)

Co-authored-by: Victor Stinner vstinner@python.org

https://bugs.python.org/issue42161

…GH-26391)

Move _PyLong_GetZero() and _PyLong_GetOne() loop invariants outside
loops in functions:

* math.comb()
* math.gcd()
* math.lcm()
* math.perm()
(cherry picked from commit 3e7ee02)

Co-authored-by: Victor Stinner <vstinner@python.org>
@miss-islington
Copy link
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@vstinner vstinner merged commit 4115996 into python:3.10 May 26, 2021
@miss-islington miss-islington deleted the backport-3e7ee02-3.10 branch May 26, 2021 23:13
@miss-islington
Copy link
Contributor Author

@vstinner: Status check is done, and it's a success ❌ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants