Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/mmap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ To map anonymous memory, -1 should be passed as the fileno along with the length

Return the length of the file, which can be larger than the size of the
memory-mapped area.
For anonymous mapping, return its size.
For an anonymous mapping, return its size.

.. versionchanged:: next
Supports anonymous mapping on Unix.
Anonymous mappings are now supported on Unix.


.. method:: tell()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The :meth:`~mmap.mmap.size` method of the :class:`mmap.mmap` class now
returns the size of an anonymous mapping on both Unix and Windows.
Previously, the size would be returned on Windows and an :exc:`OSError`
would be raised on Unix.
Raise :exc:`ValueError` instead of :exc:`OSError` with ``trackfd=False``.
would be raised on Unix. :exc:`ValueError` is now raised instead of
:exc:`OSError` when ``trackfd=False``.
Loading