-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Remove outdated mpmath Sage backend #38113
base: develop
Are you sure you want to change the base?
Conversation
Documentation preview for this PR (built with commit da04709; changes) is ready! 🎉 |
e02ba34
to
84f280c
Compare
I get plenty of doctest errors of the kind
like in
|
If you use your own version of |
I do not have any changes to
I will try some test runs with those variables defined that way in the running shel. |
No luck and it happens outside of the testing framework too
|
Is this with the same mpmath version as in the Sage distribution? |
I was going to comment about that. I use mpmath 1.4.0a1 to get python 3.13 support. So no, but it is indicative of future behavior. |
In this version of mpmath, the only thing tested is |
I have so far not tested with anything in the 1.4 development series. |
OK, I will try to get to the bottom of this separately. It looks like coercion from sage integer to something mpmath likes is at fault. |
For the record, I dug a bit deeper and the message is not quite what I thought it was about. It ultimately comes from gmpy2 (and I thought for a moment that it could be a change in gmpy 2.2.1). A closer examination of the code shows that this particular complaint is displayed when less than two arguments are passed to mpmath_create. On the other hand doing the same operation (mpmath.mpc(1, 1)) in python rather than sage does works. It literally looks like sage integers (real numbers are fine) are reduced to "None" in mpmath 1.4a. |
Thanks for the update. I've opened #38565 to reproduce this, and as a possible target PR for an continuous integration workflow for mpmath |
Maybe you could include tests? // #36447 |
Good idea, I've cherry-picked one of your commits there |
45cea3c
to
6ddabe9
Compare
…dle mpmath types without Sage backend
…ion_doctest.py: Update class name in doctest output
6ddabe9
to
da04709
Compare
This is the first step of preparation for mpmath 1.4
__float__
dunder #38223📝 Checklist
⌛ Dependencies