You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need for a few corrections/updates regarding the inspect.ismethoddescriptor()'s and inspect.isdatadescriptor()'s docs and unit tests #122102
The problem is that, in fact, the inspect.ismethoddescriptor() function does not engage the inspect.isbuiltin() function at all (whereas it does engage the rest of the said functions).
(As it seems, the mistaken statement was introduced long ago...)
There are also a few other fragments of the docs of those two functions (inspect.ismethoddescriptor() and inspect.isdatadescriptor()) which seem to me worth updating/rewording...
Naturally, it also seems a good idea to update the docstrings of those two functions (where applicable).
Activity
zuo commentedon Jul 21, 2024
See also:
(+ related PRs).
zuo commentedon Jul 21, 2024
PS The documentation fixes/improvements seem worth applying to all supported Python versions: from 3.8 through 3.14.
pythongh-122102: Fix/improve docs + tests of descriptor tools in `ins…
pythongh-122102: Fix/improve docs of `inspect.is{data,method}descript…
pythongh-122102: Fix/improve docstrings of `inspect.is{data,method}de…
pythongh-122102: Improve tests of `inspect.is{data,method}descriptor()`
gh-122102: Fix/improve docs of descriptor-related tools in `inspect` (G…
[3.14] gh-122102: Fix/improve docs of descriptor-related tools in `in…
[3.13] gh-122102: Fix/improve docs of descriptor-related tools in `in…
[3.15] gh-122102: Fix/improve docs of descriptor-related tools in `in…
zuo commentedon Jul 23, 2026
@zware Hello, Zachary! :) It was very nice to meet you during the sprint!
One minor question: should I close this issue (as completed), or only a core developer is entitled to do this?
zware commentedon Jul 23, 2026
I think we're not quite done here yet; the test update PR is still open :)