Skip to content

Commit 833ea7d

Browse files
Remove excessive documentation. Re-target to 3.15.
1 parent 7b144da commit 833ea7d

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

Doc/library/mmap.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,10 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
312312

313313
Return the length of the file, which can be larger than the size of the
314314
memory-mapped area.
315+
For anonymous mapping, return its size.
315316

316-
.. versionchanged:: 3.11
317-
For a mapping of anonymous memory, the size is now returned on both
318-
Unix and Windows. Previously, the size would be returned on Windows
319-
and an :exc:`OSError` would be raised on Unix.
317+
.. versionchanged:: next
318+
Supports anonymous mapping on Unix.
320319

321320

322321
.. method:: tell()

Doc/whatsnew/3.12.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -753,15 +753,6 @@ math
753753
for moving up or down multiple steps at a time. (Contributed by
754754
Matthias Goergens, Mark Dickinson, and Raymond Hettinger in :gh:`94906`.)
755755

756-
mmap
757-
----
758-
759-
* The :meth:`~mmap.mmap.size` method of the :class:`mmap.mmap` class
760-
now returns the size of an anonymous mapping on both Unix and Windows.
761-
Previously, the size would be returned on Windows and an :exc:`OSError` would
762-
be raised on Unix.
763-
(Contributed by Zackery Spytz in :issue:`43429`.)
764-
765756
os
766757
--
767758

0 commit comments

Comments
 (0)