diff options
author | Éric Araujo <merwok@netwok.org> | 2010-11-30 17:20:31 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2010-11-30 17:20:31 (GMT) |
commit | ff2a4ba78ce724032808ebf3e4c006b831980e7d (patch) | |
tree | 982fb7202acdcaef29bb197130484ab56a5ed9d1 /Doc/library/parser.rst | |
parent | 827fdaae30e4ee10d86a7679d7fa1c8863235ba1 (diff) | |
download | cpython-ff2a4ba78ce724032808ebf3e4c006b831980e7d.zip cpython-ff2a4ba78ce724032808ebf3e4c006b831980e7d.tar.gz cpython-ff2a4ba78ce724032808ebf3e4c006b831980e7d.tar.bz2 |
Let’s keep “throw” for the generator method and use “raise” elsewhere.
Diffstat (limited to 'Doc/library/parser.rst')
-rw-r--r-- | Doc/library/parser.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/parser.rst b/Doc/library/parser.rst index ad336d3..3e1e31b 100644 --- a/Doc/library/parser.rst +++ b/Doc/library/parser.rst @@ -268,7 +268,7 @@ function for information about the exceptions it can raise. will only need to be aware of the simple string values. Note that the functions :func:`compilest`, :func:`expr`, and :func:`suite` may -raise exceptions which are normally thrown by the parsing and compilation +raise exceptions which are normally raised by the parsing and compilation process. These include the built in exceptions :exc:`MemoryError`, :exc:`OverflowError`, :exc:`SyntaxError`, and :exc:`SystemError`. In these cases, these exceptions carry all the meaning normally associated with them. |