diff options
author | Georg Brandl <georg@python.org> | 2010-08-03 12:06:29 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-08-03 12:06:29 (GMT) |
commit | 7cb13196882e49d9d02f1b9eb7f9980cda77fd0c (patch) | |
tree | 779e11d7fdf0ad43a4dca32e978d6fdee6c4e4ce /Doc/library/mmap.rst | |
parent | e8e02e3b5bcb28ff76975c3f9a29af874e005f81 (diff) | |
download | cpython-7cb13196882e49d9d02f1b9eb7f9980cda77fd0c.zip cpython-7cb13196882e49d9d02f1b9eb7f9980cda77fd0c.tar.gz cpython-7cb13196882e49d9d02f1b9eb7f9980cda77fd0c.tar.bz2 |
Terminology fix: exceptions are raised, except in generator.throw().
Diffstat (limited to 'Doc/library/mmap.rst')
-rw-r--r-- | Doc/library/mmap.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst index 3e0854b..779a5e8 100644 --- a/Doc/library/mmap.rst +++ b/Doc/library/mmap.rst @@ -184,7 +184,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) @@ -210,7 +210,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]]) @@ -245,7 +245,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) @@ -253,4 +253,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. |