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
bpo-17306: Add class-level docstrings to collections.abc #17278
Conversation
Hi @rhettinger, does this issue need a news item or would you be able to add the skip news label for me? Thanks! |
Thanks for the PR. I was looking for something much less extensive. When I get some time, I'll provide a couple of examples and we can work from there :-) |
Whoops, apologies! Keen to amend in whatever way you see fit :) |
Hi @rhettinger, this is just a friendly bump as I don't want this to get forgotten :) |
Hi @rhettinger, sorry for the multiple bumps, but would you possibly be able to provide some examples as you suggested before, please? Thanks :) |
Sorry for not getting to this sooner. I was looking for something considerably more concise that matches the existing, terse but effective style. Try modeling the new docstrings after the existing one for Set, MutableSet, Mapping, MutableMapping, Sequence, and MutableSequence.
For classes that don't already have a docstring, don't try invent new wording. Instead, take the wording from the main docs. In Hashable for example, using the existing wording, "ABC for classes that provide the hash() method." instead of the current PR wording, "A Hashable is an object that can be hashed.". Move the method descriptions in the method docstrings. Here's a good example in the existing code:
|
No progress has been made on this for three months. |
@rhettinger Jackson was waiting over a year for your input on how to proceed, including multiple friendly bumps. Would it be fair to ask his input on whether he'd still like to take this on before closing after a fraction of that time? |
Hi @rhettinger, I confess that I had forgotten about this over Christmas! I'd be happy to take another stab at it using your comments if you think it's still a worthwhile PR and re-open it. |
This change adds class-level docstrings to collections.abc, as requested in Issue 17306.
I'm not 100% sure if the format is exactly as desired but I tried to follow the request (close to
Sequence.__doc__
) as far as possible.https://bugs.python.org/issue17306