Skip to content

bpo-33083 - math.factorial accepts non-integral Decimal instances#6149

Merged
pablogsal merged 6 commits intopython:masterfrom
pablogsal:bpo33083
Sep 3, 2018
Merged

bpo-33083 - math.factorial accepts non-integral Decimal instances#6149
pablogsal merged 6 commits intopython:masterfrom
pablogsal:bpo33083

Conversation

@pablogsal
Copy link
Copy Markdown
Member

@pablogsal pablogsal commented Mar 19, 2018

@pablogsal pablogsal changed the title bpo33083 - math.factorial accepts non-integral Decimal instances bpo-33083 - math.factorial accepts non-integral Decimal instances Mar 19, 2018
@@ -0,0 +1,3 @@
math.factorial no longer accept arguments that are not int-like. A
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry for nit-picking a bit. But

"math.factorial no longer accepts arguments.." (accept -> accepts).

emmited -> emitted

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks! :)

Copy link
Copy Markdown
Contributor

@taleinat taleinat left a comment

Choose a reason for hiding this comment

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

It was decided on the issue to avoid deprecating floats as part of this issue. Please undo the changes regarding deprecation of floats; though perhaps keep them stashed somewhere for future use...

Comment thread Modules/mathmodule.c Outdated
}
else{
pyint_form = PyNumber_Index(arg);
if( pyint_form == NULL){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fix the spacing on this and the next line.

@bedevere-bot
Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@pablogsal
Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again

@bedevere-bot
Copy link
Copy Markdown

Thanks for making the requested changes!

@taleinat: please review the changes made to this pull request.

Copy link
Copy Markdown
Contributor

@taleinat taleinat left a comment

Choose a reason for hiding this comment

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

The NEWS entry no longer correctly reflects the changes made; please revise.

@bedevere-bot
Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

And if you don't make the requested changes, you will be poked with soft cushions!

@pablogsal
Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again. Thank you for the whitespace fix!

@bedevere-bot
Copy link
Copy Markdown

Thanks for making the requested changes!

@taleinat: please review the changes made to this pull request.

@pablogsal pablogsal force-pushed the bpo33083 branch 2 times, most recently from a449b46 to 4b465a4 Compare July 30, 2018 19:16
Copy link
Copy Markdown
Contributor

@taleinat taleinat left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@mdickinson mdickinson left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
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, you can merge it @pablogsal ;-)

Copy link
Copy Markdown
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. @pablogsal you can merge it.

Copy link
Copy Markdown
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.

@pablogsal pablogsal merged commit e9ba370 into python:master Sep 3, 2018
@pablogsal pablogsal deleted the bpo33083 branch September 3, 2018 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants