[Python-Dev] Tidier Exceptions

James Y Knight foom at fuhm.net
Sat May 14 21:11:38 CEST 2005


On May 14, 2005, at 2:34 PM, Aahz wrote:
> On Fri, May 13, 2005, Greg Ewing wrote:
>
> Sounds reasonable, but it should be equally easy to handle::
>
>     raise MyError, "message"

Make that:
    raise MyError("message")

There's really no reason for a multi-argument raise when exceptions  
are objects anyhow.

James


More information about the Python-Dev mailing list