diff options
Diffstat (limited to 'Doc/library/mmap.rst')
-rw-r--r-- | Doc/library/mmap.rst | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst index bb4a515..5001d4f 100644 --- a/Doc/library/mmap.rst +++ b/Doc/library/mmap.rst @@ -165,7 +165,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length Copy the *count* bytes starting at offset *src* to the destination index *dest*. If the mmap was created with :const:`ACCESS_READ`, then calls to - move will throw a :exc:`TypeError` exception. + move will raise a :exc:`TypeError` exception. .. method:: read(num) @@ -191,7 +191,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length Resizes the map and the underlying file, if any. If the mmap was created with :const:`ACCESS_READ` or :const:`ACCESS_COPY`, resizing the map will - throw a :exc:`TypeError` exception. + raise a :exc:`TypeError` exception. .. method:: rfind(sub[, start[, end]]) @@ -226,7 +226,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length Write the bytes in *bytes* into memory at the current position of the file pointer; the file position is updated to point after the bytes that were written. If the mmap was created with :const:`ACCESS_READ`, then - writing to it will throw a :exc:`TypeError` exception. + writing to it will raise a :exc:`TypeError` exception. .. method:: write_byte(byte) @@ -234,6 +234,4 @@ To map anonymous memory, -1 should be passed as the fileno along with the length Write the the integer *byte* into memory at the current position of the file pointer; the file position is advanced by ``1``. If the mmap was created with :const:`ACCESS_READ`, then writing to it will - throw a :exc:`TypeError` exception. - - + raise a :exc:`TypeError` exception. |