cpython/Lib/test/test_inspect
Jan Kaliszewski dacc5ac71a
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>
2024-06-18 12:19:43 +00:00
..
__init__.py
inspect_fodder.py
inspect_fodder2.py
inspect_stock_annotations.py
inspect_stringized_annotations.py
inspect_stringized_annotations_2.py
inspect_stringized_annotations_pep695.py Add some more edge-case tests for `inspect.get_annotations` with `eval_str=True` (#120550) 2024-06-15 12:51:58 +00:00
test_inspect.py gh-120381: Fix inspect.ismethoddescriptor() (#120383) 2024-06-18 12:19:43 +00:00