mirror of
https://github.com/python/cpython.git
synced 2026-05-30 16:14:47 -04:00
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user