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
io.py: Improve docstrings for classes #65424
Comments
io.py contains the following to declare ABCs for some of its classes: class IOBase(_io._IOBase, metaclass=abc.ABCMeta):
pass (and similarly for RawIOBase, BufferedIOBase, TextIOBase). _io._IOBase has an extensive docstring, but IOBase doesn't. (Python doesn't inherit parent-class docstrings, on the theory that the subclass may change things that make the docstring invalid.) I propose the attached patch. |
Looks good to me. |
New changeset e33a036fd784 by Andrew Kuchling in branch '3.4': |
Can this be closed? (or needs backport to 2.7? http://hg.python.org/cpython/file/2.7/Lib/io.py#l69) |
New changeset 6e23afdee4e4 by Andrew Kuchling in branch '2.7': |
I've backported Andrew's change. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: