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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4