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/2000-December/010937.html below:

[Python-Dev] Warning Framework (PEP 230)

[Python-Dev] Warning Framework (PEP 230) [Python-Dev] Warning Framework (PEP 230)Guido van Rossum guido@python.org
Mon, 11 Dec 2000 12:11:02 -0500
> > - When PyErr_Warn() returns 1, does that mean a warning has been
> >   transmuted into an exception, or some other exception occurred
> >   during the setting of the warning?  (I think I know, but the PEP
> >   could be clearer here).
> 
> How about returning 1 for 'warning turned into exception' and -1 for 'normal
> exception' ? It would be slightly more similar to other functions if '-1'
> meant 'exception', and it would be easy to put in an if statement -- and
> still allow C code to ignore the produced error, if it wanted to.

Why would you want this?  The user clearly said that they wanted the
exception!

--Guido van Rossum (home page: http://www.python.org/~guido/)



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