-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-101100: Fix Sphinx nitpicks in library/collections.abc.rst
#113116
gh-101100: Fix Sphinx nitpicks in library/collections.abc.rst
#113116
Conversation
Please leave the double-back-ticks as they are now. They were intentionally just inline code and not links which as no value and are distracting to a reader. |
Sure -- I've reverted those changes |
testing an interface by verifying the required methods are present | ||
and have not been set to :const:`None`. This only works for simple | ||
interfaces. More complex interfaces require registration or direct | ||
subclassing. | ||
|
||
.. [2] Checking ``isinstance(obj, Iterable)`` detects classes that are | ||
registered as :class:`Iterable` or that have an :meth:`__iter__` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the added link here (to __iter__
methods) is pertinent and useful, as it relates to the definition of what an iterable is. The other methods in this footnote also have links to their documentation.
Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
GH-113136 is a backport of this pull request to the 3.12 branch. |
…pythonGH-113116) (cherry picked from commit 006355b) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
GH-113137 is a backport of this pull request to the 3.11 branch. |
…pythonGH-113116) (cherry picked from commit 006355b) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
📚 Documentation preview 📚: https://cpython-previews--113116.org.readthedocs.build/