Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Sep 14, 2019

  • 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 bf16991)

https://bugs.python.org/issue38005

…annelID. (pythonGH-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.
(cherry picked from commit bf16991)

Co-authored-by: Serhiy Storchaka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants