#11355: Tab completion leading to non existent method in CyclicCode
(addition_table)
-----------------------------+----------------------------------------------
Reporter: davidm | Owner: tbd
Type: PLEASE CHANGE | Status: new
Priority: major | Milestone: sage-4.7.1
Component: PLEASE CHANGE | Keywords: tab completion, CyclicCode,
addition_table, LinearCode, AttributeError
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-----------------------------+----------------------------------------------
This may be already known and there may be no way to avoid it, but having
non operative methods as an option in tab completion may be confusing to
some new users. This is a example that I ran across playing around with
Sage today.
{{{
sage: P.<x> = PolynomialRing(GF(2), 'x')
sage: C = CyclicCode(3,g)
sage: C.addition_table()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
/home/ayeq/sage/<ipython console> in <module>()
/home/ayeq/sage/local/lib/python2.6/site-packages/sage/structure/parent.so
in sage.structure.parent.Parent.__getattr__
(sage/structure/parent.c:5618)()
/home/ayeq/sage/local/lib/python2.6/site-packages/sage/structure/parent.so
in sage.structure.parent.raise_attribute_error
(sage/structure/parent.c:2663)()
AttributeError: 'LinearCode' object has no attribute 'addition_table'
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11355>
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.