A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-January/031922.html below:

[Python-Dev] Raising string exceptions

[Python-Dev] Raising string exceptions [Python-Dev] Raising string exceptionsMartin v. Löwis martin@v.loewis.de
08 Jan 2003 10:26:13 +0100
Neal Norwitz <neal@metaslash.com> writes:

> Should the error message when raising an invalid exception:
> 
>    "exceptions must be strings, classes or instances"
> 
> in ceval.c:2743 be changed to remove strings, since this is
> deprecated?

+1.

> Also, should we add a PendingDeprecationWarning when raising a 
> string exception?

-0. I think making it a nearly undocumented feature is enough for the
coming years.

Regards,
Martin



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