#8613: __dir__() / tab completion returns nonexistent attributes
---------------------------+------------------------------------------------
Reporter: mmezzarobba | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone: sage-4.4
Component: categories | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
On the following example, tab completion suggests ``sum``, which is not an
attribute of ``R``.
{{{
sage: R = QQ['t']
sage: R.su
R.sum R.summation
R.summation_from_element_class_add
sage: R.sum
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
/home/marc/co/sage-4.3.4/<ipython console> in <module>()
/home/marc/co/sage-4.3.4/local/lib/python2.6/site-
packages/sage/structure/parent.so in
sage.structure.parent.Parent.__getattr__ (sage/structure/parent.c:5120)()
/home/marc/co/sage-4.3.4/local/lib/python2.6/site-
packages/sage/structure/parent.so in
sage.structure.parent.raise_attribute_error
(sage/structure/parent.c:2638)()
AttributeError: 'PolynomialRing_field' object has no attribute 'sum'
sage: 'sum' in R.__dir__()
True
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8613>
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.