summaryrefslogtreecommitdiffstats
path: root/Doc/howto
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/howto
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/howto')
-rw-r--r--Doc/howto/doanddont.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/doanddont.rst b/Doc/howto/doanddont.rst
index 071eb2a..0710976 100644
--- a/Doc/howto/doanddont.rst
+++ b/Doc/howto/doanddont.rst
@@ -154,7 +154,7 @@ The following is a very popular anti-idiom ::
Consider the case the file gets deleted between the time the call to
:func:`os.path.exists` is made and the time :func:`open` is called. That means
-the last line will throw an :exc:`IOError`. The same would happen if *file*
+the last line will raise an :exc:`IOError`. The same would happen if *file*
exists but has no read permission. Since testing this on a normal machine on
existing and non-existing files make it seem bugless, that means in testing the
results will seem fine, and the code will get shipped. Then an unhandled