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/2002-December/031326.html below:

[Python-Dev] deprecating APIs

[Python-Dev] deprecating APIs [Python-Dev] deprecating APIsNeal Norwitz neal@metaslash.com
Thu, 19 Dec 2002 09:53:46 -0500
On Wed, Dec 18, 2002 at 10:54:34PM -0500, Guido van Rossum wrote:
> 
> What does this do under GCC?  I suppose it issues a warning when you
> use the deprecated API?

I modified abstract.h:

-     PyAPI_FUNC(int) PyNumber_Check(PyObject *o);
+     PyAPI_FUNC(int) PyNumber_Check(PyObject *o) Py_DEPRECATED(2.3);

I used PyNumber_Check in selectmodule.c and got:

Modules/selectmodule.c: In function `select_select':
Modules/selectmodule.c:211: warning: `PyNumber_Check' is deprecated 
                                (declared at Include/abstract.h:534)

Neal



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