| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Calling int(a) when type(a) implements __trunc__ but not __int__ or __index__ now raises a DeprecationWarning.
There was a problem hiding this comment.
LGTM.
Sorry, something went wrong.
| as deprecated, its docstring is now corrected). | ||
| (Contributed by Hugo van Kemenade in :issue:`45837`.) | ||
|
|
||
| * The delegation of :func:`int` to :meth:`__trunc__` is now deprecated. Calling |
There was a problem hiding this comment.
| * The delegation of :func:`int` to :meth:`__trunc__` is now deprecated. Calling | |
| * The delegation of :class:`int` to :meth:`__trunc__` is now deprecated. Calling |
Sorry, something went wrong.
There was a problem hiding this comment.
int() is referred as a function here, not a class.
The current text is correct.
Sorry, something went wrong.
| @@ -0,0 +1,3 @@ | |||
| The delegation of :func:`int` to :meth:`__trunc__` is now deprecated. | |||
There was a problem hiding this comment.
| The delegation of :func:`int` to :meth:`__trunc__` is now deprecated. | |
| The delegation of :class:`int` to :meth:`__trunc__` is now deprecated. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Calling int(a) when type(a) implements __trunc__ but not __int__ or __index__ now raises a DeprecationWarning.
https://bugs.python.org/issue44977