Repository navigation
gh-120381: Fix inspect.ismethoddescriptor() #120383
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
16 commits
Select commit
Hold shift + click to select a range
dcc561b
gh-120381: Fix inspect.ismethoddescriptor()
zuo 7740b0e
Merge branch 'main' into inspect-ismethoddescriptor-fix
zuo 2dc2168
Fix the blurb
zuo 4f13243
Merge branch 'main' into inspect-ismethoddescriptor-fix
zuo 7fdc95a
Merge branch 'main' into inspect-ismethoddescriptor-fix
zuo 52f579f
Clean up/improve/refactor tests
zuo 57875a7
Refactor
zuo 01178fa
Doc: add `versionchanged`...
zuo 71c3735
Test: added more method/function cases (requested by @eendebakpt)
zuo 2daa16f
Test: added one more method/function case...
zuo 0c7bb3f
Update Doc/library/inspect.rst
zuo 84aed74
A couple of renames
zuo 0390f85
Improve the `versionchanged` description
zuo bcfeeb6
Update Doc/library/inspect.rst
zuo eb4d852
minor reST syntax fix
zuo 8ccb761
Merge branch 'main' into inspect-ismethoddescriptor-fix
ncoghlan 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
Doc: add
versionchanged...
- Loading branch information
commit 01178fab7a0f50537e8aa83eef830f03ad8dd467
There are no files selected for viewing
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
@picnixz OK, I committed your suggestion. However, doesn't the fragment are no more considered as method descriptors sound too general? I mean, someone could misunderstand it – that before Python 3.13 such objects were generally considered as method descriptors; whereas our intent is to inform that just this particular function incorrectly considered them as such.
What do you think about such wording:
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.
(Or some other wording that would emphasize the focus on the behavior of this particular function...)
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.
I just committed as slightly different variant:
Could you please decide whether it is OK. :)
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.
I've added a suggestion to tighten this up and make it clear it is describing a bug fix in this function rather than a change to the language itself.
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.
Thank you! :) I applied it.
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.
Sure thanks! my suggestions are in the end only... suggestions. I appreciate when someone likes it verbatim but I don't mind when it is reformulated!