mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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.
This commit is contained in:
parent
48f305fd12
commit
e2ec0b27c0
8 changed files with 81 additions and 66 deletions
|
@ -14839,7 +14839,7 @@ wrongtype:
|
|||
break;
|
||||
default:
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"%%%c format: a number is required, "
|
||||
"%%%c format: a real number is required, "
|
||||
"not %.200s",
|
||||
type, Py_TYPE(v)->tp_name);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue