gh-102823: Document return type of floor division on floats#102824
Merged
hugovk merged 4 commits intopython:mainfrom Sep 7, 2023
Merged
gh-102823: Document return type of floor division on floats#102824hugovk merged 4 commits intopython:mainfrom
hugovk merged 4 commits intopython:mainfrom
Conversation
Eclips4
reviewed
Mar 19, 2023
skirpichev
reviewed
Mar 20, 2023
skirpichev
reviewed
Mar 20, 2023
skirpichev
approved these changes
Mar 20, 2023
Eclips4
approved these changes
Mar 20, 2023
Member
Eclips4
left a comment
There was a problem hiding this comment.
Indeed, information about mixed arithmetic is given above.
LGTM
hugovk
reviewed
Sep 7, 2023
Contributor
|
Thanks @mdickinson for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Sep 7, 2023
…thonGH-102824) (cherry picked from commit b72251d) Co-authored-by: Mark Dickinson <dickinsm@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
GH-109092 is a backport of this pull request to the 3.12 branch. |
|
GH-109093 is a backport of this pull request to the 3.11 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Sep 7, 2023
…thonGH-102824) (cherry picked from commit b72251d) Co-authored-by: Mark Dickinson <dickinsm@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
hugovk
added a commit
that referenced
this pull request
Sep 7, 2023
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR documents the long-standing behaviour that the floor division operator
//applied tofloatoperands returns a result of typefloat.Also adds a missing note to the table to note that
x // yisn't valid for complex numbers.