Skip to content

bpo-35431: Simplify negativity checks in math.comb and math.perm.#13870

Merged
mdickinson merged 1 commit intopython:masterfrom
mdickinson:math-comb-math-perm-cleanup
Jun 16, 2019
Merged

bpo-35431: Simplify negativity checks in math.comb and math.perm.#13870
mdickinson merged 1 commit intopython:masterfrom
mdickinson:math-comb-math-perm-cleanup

Conversation

@mdickinson
Copy link
Copy Markdown
Member

@mdickinson mdickinson commented Jun 6, 2019

Minor code readability improvement: move the negativity checks for k < 0 in math.comb and math.perm up nearer the top of the functions.

https://bugs.python.org/issue35431

@mdickinson mdickinson force-pushed the math-comb-math-perm-cleanup branch from c9bc189 to 7c310cf Compare June 9, 2019 13:12
@mdickinson mdickinson merged commit 45e0411 into python:master Jun 16, 2019
@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @mdickinson for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@mdickinson mdickinson deleted the math-comb-math-perm-cleanup branch June 16, 2019 10:06
@bedevere-bot
Copy link
Copy Markdown

GH-14125 is a backport of this pull request to the 3.8 branch.

mdickinson added a commit that referenced this pull request Jun 16, 2019
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
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.

5 participants