-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
bpo-33073: Adding as_integer_ratio to ints. #8750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ff0790e
bpo:33073 adding as_integer_ratio to ints.
lisroach d1daadc
Updates as_integer_ratio to be one line.
lisroach 3b89b6f
Adds ;, fixes spacing.
lisroach 48c7dd0
Update test_doctest expected output to include builtins.int.as_intege…
mdickinson 4ca566a
Regenerate clinic files.
mdickinson 2336cb4
Rewrap text to keep within the line length limit.
mdickinson 673a0ca
One more test_doctest fix.
mdickinson 5102589
Add 'what's new' entry.
mdickinson a935a7b
Add Misc/ACKS entry.
mdickinson 3cd076c
Adds boolean support.
lisroach 028417a
Merge branch 'iss_33073' of https://github.com/lisroach/cpython into …
lisroach 2028d97
Handles subclasses more smoothly. Adds unit tests.
lisroach 89a0d9d
Fixes docstring and doc format.
lisroach 148225c
Regenerates argument clinic.
lisroach ac0f11f
Move whatsnew entry to resolve a merge conflict
rhettinger cb9c978
Restored bogus whitespace redaction
rhettinger d311b83
Updates the function call. Fixes tests.
lisroach d3ef843
Fixing failing Travis build.
lisroach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Regenerate clinic files.
- Loading branch information
commit 4ca566a9b9910728e6aac14b565a6aadbb889198
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True.as_integer_ratio()will return(True, 1). It should return(1, 1).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm; good point. There's a precedent here in the form of
True.numerator, which returns1.