New submission from Mariatta Wijaya:
Added the documentation for set_protocol and get_protocol.
----------
keywords: +patch
Added file: http://bugs.python.org/file44918/issue28088.patch
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue28088>
_______________________________________
Berker Peksag added the comment:
The patch looks good to me, but perhaps we should make these docstrings shorter and refer people to the actual documentation for details? We recently did this in subprocess and venv modules.
----------
nosy: +berker.peksag, martin.panter
stage: needs patch -> patch review
versions: +Python 3.6, Python 3.7 -Python 3.4
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue8840>
_______________________________________
A.M. Kuchling added the comment:
"Why, this is a simple docstring change. How difficult can it be?", I thought.
Ah ha ha ha.
Here's a patch against the 3.5 branch. It should also apply cleanly to 3.6 or 3.7, except for a little Argument Clinic noise.
The patch changes 3 occurrences of the truncate() docstring in Lib/_pyio.py, and 1 each in Modules/_io/{bytesio.c,fileio.c,iobase.c,stringio.c}. Whew! Do we want to change all of these occurrences, or just the one specific case of StringIO? It seemed to me that we want to change them all.
----------
nosy: +akuchling
Added file: http://bugs.python.org/file45375/issue8840.txt
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue8840>
_______________________________________
New submission from Peibolvig:
At point 9.8 of the 3.4.1 version documentation, ( https://docs.python.org/3/tutorial/classes.html#exceptions-are-classes-too ), there is an example of two ways to use the 'raise' statement:
raise Class
raise Instance
The next two lines, state:
"In the first form, Class must be an instance of type or of a class derived from it. The first form is a shorthand for: raise Class()"
That only says something about the first form twice.
I think that the correct way would be:
"In the first form, Class must be an instance of type or of a class derived from it. The SECOND form is a shorthand for: raise Class()"
----------
assignee: docs@python
components: Documentation
messages: 221511
nosy: Peibolvig, docs@python
priority: normal
severity: normal
status: open
title: Error in documentation of point 9.8 'Exceptions are classes too'
versions: Python 3.4
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue21864>
_______________________________________
Eric V. Smith added the comment:
Thanks, Jason. I updated the PEP, so now I think the docs and PEP match the implementation.
----------
resolution: -> fixed
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue28590>
_______________________________________