SIGN IN SIGN UP

gh-120381: Fix inspect.ismethoddescriptor() (#120383)

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.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
J
Jan Kaliszewski committed
dacc5ac71a8e546f9ef76805827cb50d4d40cabf
Parent: 7c5da94
Committed by GitHub <noreply@github.com> on 6/18/2024, 12:19:43 PM