[Python-Dev] Raising string exceptions (original) (raw)

Neal Norwitz neal@metaslash.com
Tue, 7 Jan 2003 21:08:45 -0500


Should the error message when raising an invalid exception:

"exceptions must be strings, classes or instances"

in ceval.c:2743 be changed to remove strings, since this is deprecated?

Also, should we add a PendingDeprecationWarning when raising a string exception? I suspect a DeprecationWarning is too much for 2.3.

Neal