summaryrefslogtreecommitdiffstats
path: root/Doc/library/mmap.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-03 12:06:29 (GMT)
committerGeorg Brandl <georg@python.org>2010-08-03 12:06:29 (GMT)
commit7cb13196882e49d9d02f1b9eb7f9980cda77fd0c (patch)
tree779e11d7fdf0ad43a4dca32e978d6fdee6c4e4ce /Doc/library/mmap.rst
parente8e02e3b5bcb28ff76975c3f9a29af874e005f81 (diff)
downloadcpython-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.rst8
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.