Staging
v0.5.1
https://github.com/python/cpython
Revision cf8016a8d6b3fed550ed961ffd957ab3d19f04da authored by Amaury Forgeot d'Arc on 09 October 2008, 23:37:48 UTC, committed by Amaury Forgeot d'Arc on 09 October 2008, 23:37:48 UTC
contains a ``coding:`` header: the wrong line was displayed, and the encoding was not respected.

Patch by Victor Stinner.
1 parent 76e5538
Raw File
Tip revision: cf8016a8d6b3fed550ed961ffd957ab3d19f04da authored by Amaury Forgeot d'Arc on 09 October 2008, 23:37:48 UTC
Issues #2384 and #3975: Tracebacks were not correctly printed when the source file
Tip revision: cf8016a
intobject.h
/* 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.
 */

#ifndef Py_INTOBJECT_H
#define Py_INTOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

#if defined(__GNUC__)
#warning "DeprecationWarning: intobject.h is going to be removed in 3.1"
#elif defined(MS_WINDOWS)
#pragma message("DeprecationWarning: intobject.h is going to be removed in 3.1")
#endif

#define PyInt_Check(op) PyLong_Check(op)
#define PyInt_FromString PyLong_FromString
#define PyInt_FromUnicode PyLong_FromUnicode
#define PyInt_FromLong PyLong_FromLong
#define PyInt_FromSize_t PyLong_FromSize_t
#define PyInt_FromSsize_t PyLong_FromSsize_t
#define PyInt_AsLong PyLong_AsLong
#define PyInt_AsSsize_t PyLong_AsSsize_t
#define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
#define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
#define PyInt_AS_LONG PyLong_AS_LONG

#ifdef __cplusplus
}
#endif
#endif /* !Py_INTOBJECT_H */
back to top