#8865: FractionFieldElement.__call__ doesn't handle keyword arguments
------------------------+---------------------------------------------------
Reporter: mguaypaq | Owner: AlexGhitza
Type: defect | Status: new
Priority: minor | Milestone: sage-4.4.1
Component: algebra | Keywords: FractionField, subs
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
!PolynomialRing elements allow keyword arguments when substitute values
for the variables (via !__call!__), but the corresponding method in
!FractionFieldElement doesn't handle keyword arguments properly.
{{{
----------------------------------------------------------------------
| Sage Version 4.4, Release Date: 2010-04-24 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: x = PolynomialRing(RationalField(),'x',3).gens()
sage: f = x[0] + x[1] - 2*x[1]*x[2]
sage: h = f /(x[1] + x[2])
sage: h
(-2*x1*x2 + x0 + x1)/(x1 + x2)
sage: h(1,2,5)
-17/7
sage: h(x0=1)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/mguaypaq/sage/<ipython console> in <module>()
TypeError: __call__() got an unexpected keyword argument 'x0'
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8865>
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.