[Python-Dev] RE: PEP-317
Phillip J. Eby
pje@telecommunity.com
Tue, 10 Jun 2003 12:04:00 -0400
At 10:11 AM 6/10/03 -0400, Guido van Rossum wrote:
>But I'm not at all happy with the proposed deprecation of
>
> raise Class
>
>and
>
> raise Class, arguments
>
>in favor of
>
> raise Class()
>
>and
>
> raise Class(arguments)
You know what's really funny... ever since Python 2.1 or thereabouts, I
had the impression that it *had* been deprecated, and I started teaching
myself to use the "newer" form. I really don't remember *where* I got that
impression though. I did find one nice side effect, however... It's a lot
easier to put a helpful message in the exception if you use parentheses and
can therefore wrap lines. So, it turned out to be good style to do 'raise
Class(args)' for reasons that had nothing to do with whyever I started.