mirror of
https://github.com/python/cpython.git
synced 2026-04-21 03:10:52 +00:00
* Fix a crash in comparing with float (and maybe other crashes).
* They are now never equal to strings and non-integer numbers.
* Comparison with a large number no longer raises OverflowError.
* Arbitrary exceptions no longer silenced in constructors and comparisons.
* TypeError raised in the constructor contains now the name of the type.
* Accept only ChannelID and int-like objects in channel functions.
* Accept only InterpreterId, int-like objects and str in the InterpreterId constructor.
* Accept int-like objects, not just int in interpreter related functions.
(cherry picked from commit bf169915ec)
19 lines
456 B
C
19 lines
456 B
C
#ifndef Py_CPYTHON_INTERPRETERIDOBJECT_H
|
|
# error "this header file must not be included directly"
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Interpreter ID Object */
|
|
|
|
PyAPI_DATA(PyTypeObject) _PyInterpreterID_Type;
|
|
|
|
PyAPI_FUNC(PyObject *) _PyInterpreterID_New(int64_t);
|
|
PyAPI_FUNC(PyObject *) _PyInterpreterState_GetIDObject(PyInterpreterState *);
|
|
PyAPI_FUNC(PyInterpreterState *) _PyInterpreterID_LookUp(PyObject *);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|