#9152: [with patch, needs review] Update extension code for mpmath-0.15
---------------------------------+------------------------------------------
Reporter: fredrik.johansson | Owner: tbd
Type: enhancement | Status: new
Priority: major | Milestone:
Component: packages | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------------+------------------------------------------
Comment(by ddrake):
I installed the spkg and patch into 4.4.4.alpha0. "runtests" worked fine
(finished in 12.9 seconds, compared to 15.7 for the mpmath shipped in
4.4.3), but "doctests" had one failure:
{{{
qbarfrom**********************************************************************
File "/home/drake/s/sage-4.4.4.alpha0/local/lib/python2.6/site-
packages/mpmath/functions/functions.py", line ?, in NoName
Failed example:
qbarfrom(m=extraprec(20)(mfrom)(qbar=0.25)) # ill-conditioned
Exception raised:
Traceback (most recent call last):
File "/home/drake/s/sage-4.4.4.alpha0/local/lib/python/doctest.py",
line 1241, in __run
compileflags, 1) in test.globs
File "<doctest NoName[4]>", line 1, in <module>
qbarfrom(m=extraprec(20)(mfrom)(qbar=0.25)) # ill-conditioned
File "/home/drake/s/sage-4.4.4.alpha0/local/lib/python2.6/site-
packages/mpmath/ctx_mp.py", line 1228, in __call__
g.__name__ = f.__name__
AttributeError: 'mfrom' object has no attribute '__name__'
**********************************************************************
File "/home/drake/s/sage-4.4.4.alpha0/local/lib/python2.6/site-
packages/mpmath/functions/functions.py", line ?, in NoName
Failed example:
qbarfrom(k=extraprec(20)(kfrom)(qbar=0.25)) # ill-conditioned
Exception raised:
Traceback (most recent call last):
File "/home/drake/s/sage-4.4.4.alpha0/local/lib/python/doctest.py",
line 1241, in __run
compileflags, 1) in test.globs
File "<doctest NoName[5]>", line 1, in <module>
qbarfrom(k=extraprec(20)(kfrom)(qbar=0.25)) # ill-conditioned
File "/home/drake/s/sage-4.4.4.alpha0/local/lib/python2.6/site-
packages/mpmath/ctx_mp.py", line 1228, in __call__
g.__name__ = f.__name__
AttributeError: 'kfrom' object has no attribute '__name__'
0.003
}}}
In 4.4.3, all the doctests pass.
Also, I think it's considered best to not post spkgs as ticket attachments
-- usually you just put it somewhere on the web (your sage.math home
directory is good) and post the link.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9152#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.