Message253783
If existing subclasses like FileIO call the base, that is an implementation detail. But custom subclasses of the Raw, Buffered, and Text base classes should not be prohibited from chain calling the base’s __init__() method, nor should they have to override __init__() if there is no special initialization to be done. For IOBase itself, I don’t see a strong argument either way, but it makes sense to keep it consistent with the other three base classes.
I propose this patch, which changes “There is no public constructor” to “The constructor accepts no arguments”. In my mind this blesses making custom subclasses, which already seems to be tested and used in practice. |
|
Date |
User |
Action |
Args |
2015-10-31 11:40:02 | martin.panter | set | recipients:
+ martin.panter, terry.reedy, docs@python, Gerrit.Holl |
2015-10-31 11:40:02 | martin.panter | set | messageid: <1446291602.09.0.693117787277.issue25415@psf.upfronthosting.co.za> |
2015-10-31 11:40:02 | martin.panter | link | issue25415 messages |
2015-10-31 11:40:00 | martin.panter | create | |
|