Why "class exceptions" are not deprecated?

Gregory Petrosyan gregory.petrosyan at gmail.com
Tue Mar 21 21:07:36 CET 2006


"The first argument to raise names the exception to be raised. The
optional second argument specifies the exception's argument.
Alternatively, the above could be written as raise
NameError('HiThere'). Either form works fine, but there seems to be a
growing stylistic preference for the latter."

Are there any deprecation plans?




More information about the Python-list mailing list