8000 gh-109311: Remove support for non-complex/float types in __complex/float__ by skirpichev · Pull Request #112680 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-109311: Remove support for non-complex/float types in __complex/float__ #112680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
  • Loading branch information
skirpichev and picnixz authored May 11, 2025
commit f0b659620c8eac616b6a6cf9124df6d3942918cf
1 change: 0 additions & 1 deletion Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ Others
(Contributed by Sergey B Kirpichev in :gh:`109311`.)



Porting to Python 3.15
======================

Expand Down
4 changes: 2 additions & 2 deletions Objects/complexobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ try_complex_special_method(PyObject *op)
return res;
}
PyErr_Format(PyExc_TypeError,
"%T.__complex__ returned non-complex (type %T)",
op, res);
"%T.__complex__ returned non-complex (type %T)",
op, res);
Py_DECREF(res);
return NULL;
}
Expand Down
Loading
0