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

Martin v. L�wis martin@v.loewis.de
08 Jan 2003 10:26:13 +0100


Neal Norwitz <neal@metaslash.com> writes:

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?

+1.

Also, should we add a PendingDeprecationWarning when raising a string exception?

-0. I think making it a nearly undocumented feature is enough for the coming years.

Regards, Martin