[docs] [issue25415] I can create instances of io.IOBase

Martin Panter report at bugs.python.org
Fri Oct 16 00:16:41 CEST 2015


Martin Panter added the comment:

“No public constructor” to me means that it is not defined how or if you can construct instances other than by the public subclasses. What do you expect to happen? How do you expect the public subclasses such as FileIO and BufferedReader to work if the base constructor does not work?

The other three base classes (RawIOBase, BufferedIOBase, TextIOBase) also say “there is no public constructor”. However allowing custom subclasses of these is very useful, so I would actually be for removing these restrictions from the documentation, and instead saying that each constructor accepts no arguments.

----------
assignee:  -> docs at python
components: +Documentation, IO -Library (Lib)
nosy: +docs at python, martin.panter

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25415>
_______________________________________


More information about the docs mailing list