summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-09-14 16:36:19 (GMT)
committerGitHub <noreply@github.com>2019-09-14 16:36:19 (GMT)
commitf37a9831027ecfe948697cdb5e35b417805d94e5 (patch)
tree50a4b37c48bba3a6bec7811ba7e74ded2a48bdd1 /Include/cpython
parentd322abbb83eb751045246a70f39d040d13a6108b (diff)
downloadcpython-f37a9831027ecfe948697cdb5e35b417805d94e5.zip
cpython-f37a9831027ecfe948697cdb5e35b417805d94e5.tar.gz
cpython-f37a9831027ecfe948697cdb5e35b417805d94e5.tar.bz2
[3.8] bpo-38005: Fixed comparing and creating of InterpreterID and ChannelID. (GH-15652) (GH-16145)
* 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 bf169915ecdd42329726104278eb723a7dda2736)
Diffstat (limited to 'Include/cpython')
-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 cb72c2b..67ec587 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