diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-11 17:04:37 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-11 17:04:37 (GMT) |
commit | a9cab519656deda9fc3f500489bea1177d155858 (patch) | |
tree | 89f9d7e3dba2c16ed1c1938565d7e9a3ecf8f6ae /Include/intobject.h | |
parent | b3ce91607af842ab3a4658557ca51c1563332c30 (diff) | |
download | cpython-a9cab519656deda9fc3f500489bea1177d155858.zip cpython-a9cab519656deda9fc3f500489bea1177d155858.tar.gz cpython-a9cab519656deda9fc3f500489bea1177d155858.tar.bz2 |
Issue #4910: PyNumber_Int is deprecated in 3.0.1; will be removed in 3.1.
Diffstat (limited to 'Include/intobject.h')
-rw-r--r-- | Include/intobject.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Include/intobject.h b/Include/intobject.h index 041c9f7..e3147f4 100644 --- a/Include/intobject.h +++ b/Include/intobject.h @@ -1,8 +1,8 @@ /* Integer object interface - This header files exists to make porting code to Python 3.0 easier. It - defines aliases from PyInt_* to PyLong_*. Only PyInt_GetMax() and - PyInt_CheckExact() remain in longobject.h. + This header file exists to make porting code to Python 3.0 easier. It + defines aliases from PyInt_* to PyLong_* and an alias from + PyNumber_Int to PyNumber_Long. */ #ifndef Py_INTOBJECT_H @@ -28,6 +28,7 @@ extern "C" { #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyInt_AS_LONG PyLong_AS_LONG +#define PyNumber_Int PyNumber_Long #ifdef __cplusplus } |