]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41974: Remove complex.__float__, complex.__floordiv__, etc (GH-22593)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 9 Oct 2020 11:14:37 +0000 (14:14 +0300)
committerGitHub <noreply@github.com>
Fri, 9 Oct 2020 11:14:37 +0000 (14:14 +0300)
commite2ec0b27c02a158d0007c11dcc1f2d7a95948712
treeb3af19afbbe88789b8f9af7ba9ffd91e87c1e5c1
parent48f305fd122080a9181cbda33bdb42ea36a0136f
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.
Doc/whatsnew/3.10.rst
Lib/test/test_complex.py
Misc/NEWS.d/next/Core and Builtins/2020-10-08-09-58-19.bpo-41974.8B-q8O.rst [new file with mode: 0644]
Objects/abstract.c
Objects/bytesobject.c
Objects/complexobject.c
Objects/floatobject.c
Objects/unicodeobject.c