A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-May/053760.html below:

[Python-Dev] Tidier Exceptions

[Python-Dev] Tidier Exceptions [Python-Dev] Tidier ExceptionsJames 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

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