Skip to content

Commit 23a684d

Browse files
technillogueEclips4terryjreedyerlend-aasland
authored andcommitted
pythongh-114364: Fix awkward wording about mmap.mmap.seekable (python#114374)
--------- Co-authored-by: Kirill Podoprigora <[email protected]> Co-authored-by: Terry Jan Reedy <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent 41e0d79 commit 23a684d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Doc/whatsnew/3.13.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ mmap
259259
----
260260

261261
* The :class:`mmap.mmap` class now has an :meth:`~mmap.mmap.seekable` method
262-
that can be used where it requires a file-like object with seekable and
263-
the :meth:`~mmap.mmap.seek` method return the new absolute position.
262+
that can be used when a seekable file-like object is required.
263+
The :meth:`~mmap.mmap.seek` method now returns the new absolute position.
264264
(Contributed by Donghee Na and Sylvie Liberman in :gh:`111835`.)
265265
* :class:`mmap.mmap` now has a *trackfd* parameter on Unix; if it is ``False``,
266266
the file descriptor specified by *fileno* will not be duplicated.

Misc/NEWS.d/3.13.0a2.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,9 @@ part of a :exc:`BaseExceptionGroup`, in addition to the recent support for
565565
.. section: Library
566566
567567
The :class:`mmap.mmap` class now has an :meth:`~mmap.mmap.seekable` method
568-
that can be used where it requires a file-like object with seekable and the
569-
:meth:`~mmap.mmap.seek` method return the new absolute position. Patch by
570-
Donghee Na.
568+
that can be used when a seekable file-like object is required.
569+
The :meth:`~mmap.mmap.seek` method now returns the new absolute position.
570+
Patch by Donghee Na.
571571

572572
..
573573

0 commit comments

Comments
 (0)