Content-Length: 280695 | pFad | https://github.com/python/cpython/pull/120684

19 [3.13] gh-120381: Fix inspect.ismethoddescriptor() (GH-120383) by miss-islington · Pull Request #120684 · python/cpython · GitHub
Skip to content

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

Merged
ncoghlan merged 1 commit intopython:3.13from
miss-islington:backport-dacc5ac-3.13
Jun 19, 2024
Merged

[3.13] gh-120381: Fix inspect.ismethoddescriptor() (GH-120383)#120684
ncoghlan merged 1 commit intopython:3.13from
miss-islington:backport-dacc5ac-3.13

Conversation

@miss-islington
Copy link
Copy Markdown
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>
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









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/120684

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy