Skip to content
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

[3.13] gh-120381: Fix inspect.ismethoddescriptor() (GH-120383) #120684

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 18, 2024

The inspect.ismethoddescriptor() function did not check for the lack of
__delete__() and, consequently, erroneously returned True when applied
to data descriptors with only __get__() and __delete__() defined.

(cherry picked from commit dacc5ac)

Co-authored-by: Jan Kaliszewski zuo@kaliszewski.net
Co-authored-by: Bénédikt Tran 10796600+picnixz@users.noreply.github.com
Co-authored-by: Alyssa Coghlan ncoghlan@gmail.com


📚 Documentation preview 📚: https://cpython-previews--120684.org.readthedocs.build/

The `inspect.ismethoddescriptor()` function did not check for the lack of
`__delete__()` and, consequently, erroneously returned True when applied
to *data* descriptors with only `__get__()` and `__delete__()` defined.

(cherry picked from commit dacc5ac)

Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
@ncoghlan ncoghlan merged commit 39c3f11 into python:3.13 Jun 19, 2024
36 checks passed
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.

3 participants