mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix problems in the io docs noted by Alexandre Vassalotti
This commit is contained in:
parent
e0313f20c0
commit
9efcc4b319
2 changed files with 6 additions and 9 deletions
|
@ -437,12 +437,12 @@ Buffered Streams
|
|||
|
||||
.. method:: read1()
|
||||
|
||||
In :class:`BytesIO`, this is the same as :meth:`read()`.
|
||||
In :class:`BytesIO`, this is the same as :meth:`read`.
|
||||
|
||||
.. method:: truncate([pos])
|
||||
|
||||
Truncate the file to at most *pos* bytes. *pos* defaults to the current
|
||||
stream position, as returned by :meth:`tell()`.
|
||||
stream position, as returned by :meth:`tell`.
|
||||
|
||||
|
||||
.. class:: BufferedReader(raw[, buffer_size])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue