Closes #16950: update wording about raise syntax.
This commit is contained in:
parent
c9c784550d
commit
6bf3a71f57
|
@ -783,7 +783,7 @@ Programming Recommendations
|
|||
The paren-using form is preferred because when the exception
|
||||
arguments are long or include string formatting, you don't need to
|
||||
use line continuation characters thanks to the containing
|
||||
parentheses. The older form will be removed in Python 3.
|
||||
parentheses. The older form is not legal syntax in Python 3.
|
||||
|
||||
- When catching exceptions, mention specific exceptions whenever
|
||||
possible instead of using a bare ``except:`` clause.
|
||||
|
|
Loading…
Reference in New Issue