diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-10-09 11:14:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 11:14:37 (GMT) |
commit | e2ec0b27c02a158d0007c11dcc1f2d7a95948712 (patch) | |
tree | b3af19afbbe88789b8f9af7ba9ffd91e87c1e5c1 /Doc/whatsnew | |
parent | 48f305fd122080a9181cbda33bdb42ea36a0136f (diff) | |
download | cpython-e2ec0b27c02a158d0007c11dcc1f2d7a95948712.zip cpython-e2ec0b27c02a158d0007c11dcc1f2d7a95948712.tar.gz cpython-e2ec0b27c02a158d0007c11dcc1f2d7a95948712.tar.bz2 |
bpo-41974: Remove complex.__float__, complex.__floordiv__, etc (GH-22593)
Remove complex special methods __int__, __float__, __floordiv__,
__mod__, __divmod__, __rfloordiv__, __rmod__ and __rdivmod__
which always raised a TypeError.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.10.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 4ada4be..7401ba7 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -255,6 +255,12 @@ Deprecated Removed ======= +* Removed special methods ``__int__``, ``__float__``, ``__floordiv__``, + ``__mod__``, ``__divmod__``, ``__rfloordiv__``, ``__rmod__`` and + ``__rdivmod__`` of the :class:`complex` class. They always raised + a :exc:`TypeError`. + (Contributed by Serhiy Storchaka in :issue:`41974`.) + * The ``ParserBase.error()`` method from the private and undocumented ``_markupbase`` module has been removed. :class:`html.parser.HTMLParser` is the only subclass of ``ParserBase`` and its ``error()`` implementation has already been removed in |