Issue #4910: PyNumber_Int is deprecated in 3.0.1; will be removed in 3.1.

This commit is contained in:
Mark Dickinson 2009-02-11 17:04:37 +00:00
parent b3ce91607a
commit a9cab51965
3 changed files with 15 additions and 4 deletions

View file

@ -784,7 +784,11 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
is cleared and the value is clipped.
*/
#define PyNumber_Int PyNumber_Long
/*
PyNumber_Int used to be found here. It's now in Include/intobject.h,
where it is defined to be an alias for PyNumber_Long. New code
should use PyNumber_Long instead.
*/
PyAPI_FUNC(PyObject *) PyNumber_Long(PyObject *o);