]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-114364: Fix awkward wording about mmap.mmap.seekable (#114374)
authortechnillogue <wisepoison@gmail.com>
Thu, 1 Feb 2024 06:03:58 +0000 (01:03 -0500)
committerGitHub <noreply@github.com>
Thu, 1 Feb 2024 06:03:58 +0000 (06:03 +0000)
---------
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Doc/whatsnew/3.13.rst
Misc/NEWS.d/3.13.0a2.rst

index b33203efbb05c0c64ebe7ab31c314ac0f6c23747..6b94a3771406faf343a0fb80e013e930acac4737 100644 (file)
@@ -259,8 +259,8 @@ mmap
 ----
 
 * The :class:`mmap.mmap` class now has an :meth:`~mmap.mmap.seekable` method
-  that can be used where it requires a file-like object with seekable and
-  the :meth:`~mmap.mmap.seek` method return the new absolute position.
+  that can be used when a seekable file-like object is required.
+  The :meth:`~mmap.mmap.seek` method now returns the new absolute position.
   (Contributed by Donghee Na and Sylvie Liberman in :gh:`111835`.)
 * :class:`mmap.mmap` now has a *trackfd* parameter on Unix; if it is ``False``,
   the file descriptor specified by *fileno* will not be duplicated.
index d4be4fb8a3d3ab693ba9e8c0ee3576576446ba0c..e5841e14c02efbf6db87ea9f274c71b6c90d3fc1 100644 (file)
@@ -565,9 +565,9 @@ part of a :exc:`BaseExceptionGroup`, in addition to the recent support for
 .. section: Library
 
 The :class:`mmap.mmap` class now has an :meth:`~mmap.mmap.seekable` method
-that can be used where it requires a file-like object with seekable and the
-:meth:`~mmap.mmap.seek` method return the new absolute position. Patch by
-Donghee Na.
+that can be used when a seekable file-like object is required.
+The :meth:`~mmap.mmap.seek` method now returns the new absolute position.
+Patch by Donghee Na.
 
 ..