Skip to content

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 [email protected]
Co-authored-by: Bénédikt Tran [email protected]
Co-authored-by: Alyssa Coghlan [email protected]


📚 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 <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Alyssa Coghlan <[email protected]>
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