Skip to content

Commit

Permalink
Fix BufferedIOBase.write() link in buffer.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Jul 26, 2023
1 parent 6079182 commit 7320499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/c-api/buffer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ Simple objects such as :class:`bytes` and :class:`bytearray` expose their
underlying buffer in byte-oriented form. Other forms are possible; for example,
the elements exposed by an :class:`array.array` can be multi-byte values.

An example consumer of the buffer interface is the :meth:`!write`
An example consumer of the buffer interface is the :meth:`~io.BufferedIOBase.write`
method of file objects: any object that can export a series of bytes through
the buffer interface can be written to a file. While :meth:`!write` only
the buffer interface can be written to a file. While :meth:`~io.BufferedIOBase.write` only
needs read-only access to the internal contents of the object passed to it,
other methods such as :meth:`~io.BufferedIOBase.readinto` need write access
to the contents of their argument. The buffer interface allows objects to
Expand Down

0 comments on commit 7320499

Please sign in to comment.