[Python-Dev] Raising string exceptions

Chad Netzer cnetzer@mail.arc.nasa.gov
Wed, 8 Jan 2003 12:14:58 -0800


On Wednesday 08 January 2003 07:20, Guido van Rossum wrote:

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

> Maybe change to "string (deprecated)" or change "must" to "should".

And move it after 'class' and 'instance' in the printout, to subtly
make it the last choice, not the first.

ie.

"exceptions must be classes or instances.\n(or strings, which are 
deprecated)."

or

"exceptions must be classes or instances. (strings are deprecated)."

or

"exceptions must be classes, instances, or (deprecated) strings."

-- 
Bay Area Python Interest Group - http://www.baypiggies.net/

Chad Netzer
cnetzer@mail.arc.nasa.gov