summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-09-13 22:50:27 +0300
committerGitHub <noreply@github.com>2019-09-13 22:50:27 +0300
commitbf169915ecdd42329726104278eb723a7dda2736 (patch)
treea7d78e17ab50c98822a9ea307068a1eac9531faa /Include
parente082e7cbe4a934b86f7a07354d97d4e14a9dd46a (diff)
downloadcpython-git-bf169915ecdd42329726104278eb723a7dda2736.tar.gz
bpo-38005: Fixed comparing and creating of InterpreterID and ChannelID. (GH-15652)
* 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.
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/interpreteridobject.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Include/cpython/interpreteridobject.h b/Include/cpython/interpreteridobject.h
index cb72c2b089..67ec587354 100644
--- a/Include/cpython/interpreteridobject.h
+++ b/Include/cpython/interpreteridobject.h
@@ -14,8 +14,6 @@ PyAPI_FUNC(PyObject *) _PyInterpreterID_New(int64_t);
PyAPI_FUNC(PyObject *) _PyInterpreterState_GetIDObject(PyInterpreterState *);
PyAPI_FUNC(PyInterpreterState *) _PyInterpreterID_LookUp(PyObject *);
-PyAPI_FUNC(int64_t) _Py_CoerceID(PyObject *);
-
#ifdef __cplusplus
}
#endif