diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-09-13 19:50:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-13 19:50:27 (GMT) |
commit | bf169915ecdd42329726104278eb723a7dda2736 (patch) | |
tree | a7d78e17ab50c98822a9ea307068a1eac9531faa /Misc | |
parent | e082e7cbe4a934b86f7a07354d97d4e14a9dd46a (diff) | |
download | cpython-bf169915ecdd42329726104278eb723a7dda2736.zip cpython-bf169915ecdd42329726104278eb723a7dda2736.tar.gz cpython-bf169915ecdd42329726104278eb723a7dda2736.tar.bz2 |
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 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2019-09-02-20-00-31.bpo-38005.e7VsTA.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-09-02-20-00-31.bpo-38005.e7VsTA.rst b/Misc/NEWS.d/next/Core and Builtins/2019-09-02-20-00-31.bpo-38005.e7VsTA.rst new file mode 100644 index 0000000..706abf5 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-09-02-20-00-31.bpo-38005.e7VsTA.rst @@ -0,0 +1 @@ +Fixed comparing and creating of InterpreterID and ChannelID. |