gh-82406: document duck-type nature of inspect.is*function - #94987
Conversation
ed1273f to
c8fafc0
Compare
f722790 to
3c3d198
Compare
|
This PR is stale because it has been open for 30 days with no activity. |
Documentation build overview
8 files changed ·
|
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Review feedback: use "function-like objects" and link the duck-typing glossary term rather than saying "duck-type functions". This matches the wording already used in the NEWS entry for pythongh-84753.
johnslavik
left a comment
There was a problem hiding this comment.
@encukou, what do you think?
encukou
left a comment
There was a problem hiding this comment.
As a tightly scoped PR, this makes sense.
"function-like objects now return True" technically isn't true, but the same wording is in the notes above and below.
"Duck-typed function-like objects" is vague, but if we wanted precision, that should go in the main prose, not in a versionchanged note.
I could do without the comments in inspect.py, but they're not harmful.
I removed the NEWS entry though; we don't add those for docs.
|
Thanks @graingert for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Thanks @graingert for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @graingert for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
GH-156880 is a backport of this pull request to the 3.13 branch. |
|
GH-156881 is a backport of this pull request to the 3.14 branch. |
|
GH-156882 is a backport of this pull request to the 3.15 branch. |
Uh oh!
There was an error while loading. Please reload this page.