mirror of
https://github.com/python/cpython.git
synced 2026-03-03 11:30:43 +00:00
parent
94b69f6ba3
commit
5cee720aa6
1 changed files with 1 additions and 1 deletions
|
|
@ -3539,7 +3539,7 @@ be accessed or printed directly without having to reference \code{.args}.
|
|||
|
||||
But use of \code{.args} is discouraged. Instead, the preferred use is to pass
|
||||
a single argument to an exception (which can be a tuple if multiple arguments
|
||||
are needed) and have it bound to the \code{message} attribute. One my also
|
||||
are needed) and have it bound to the \code{message} attribute. One may also
|
||||
instantiate an exception first before raising it and add any attributes to it
|
||||
as desired.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue