> > 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) Neat! +1. Now it's time to make a list of APIs we want to declare deprecated. (Some have probably been deprecated for quite a while...) --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