[docs] [issue9715] io doc improvements
Antoine Pitrou
report at bugs.python.org
Mon Aug 30 16:23:21 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> File I/O and memory I/O would have more uniform in their APIs and thus be
> easier to document, describe and use. Currently, one class is used to do
> file I/O.
That's wrong. Various classes are used for file I/O: FileIO,
Buffered{Reader,Writer,Random}, TextIOWrapper.
> If someone wanted to select between file and memory I/O at runtime it
> wouldn't be possible to just swap the class using the current code.
Why would you swap the class since the constructor arguments would be
different anyway?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9715>
_______________________________________
More information about the docs
mailing list