mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
Terminology fix: exceptions are raised, except in generator.throw().
This commit is contained in:
parent
e8e02e3b5b
commit
7cb1319688
17 changed files with 32 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue