#12119: Replace remaining __getslice__ with functionality in __getitem__ (part
3)
-------------------------+--------------------------------------------------
Reporter: aapitzsch | Owner: jason
Type: defect | Status: needs_work
Priority: major | Milestone: sage-5.0
Component: misc | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: André Apitzsch
Merged: | Dependencies:
-------------------------+--------------------------------------------------
Changes (by davidloeffler):
* status: needs_review => needs_work
Comment:
This patch causes a doctest failure:
{{{
sage -t -force_lib devel/sage-12119/sage/modular/abvar/abvar.py
**********************************************************************
File
"/levi/scratch/robertwb/buildbot/sage-4.7.2/devel/sage-12119/sage/modular/abvar/abvar.py",
line 3498:
sage: J[:2]
Exception raised:
Traceback (most recent call last):
File
"/levi/scratch/robertwb/buildbot/sage-4.7.2/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/levi/scratch/robertwb/buildbot/sage-4.7.2/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/levi/scratch/robertwb/buildbot/sage-4.7.2/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_87[7]>", line 1, in <module>
J[:Integer(2)]###line 3498:
sage: J[:2]
File "parent.pyx", line 1319, in
sage.structure.parent.Parent.__getslice__ (sage/structure/parent.c:8911)
File "parent.pyx", line 1210, in
sage.structure.parent.Parent._list_from_iterator_cached
(sage/structure/parent.c:8236)
File "parent.pyx", line 811, in
sage.structure.parent.Parent.__getattr__ (sage/structure/parent.c:6260)
File "parent.pyx", line 323, in
sage.structure.parent.getattr_from_other_class
(sage/structure/parent.c:3110)
AttributeError: 'ModAbVar_ambient_jacobian_class_with_category' object
has no attribute '__iter__'
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12119#comment:2>
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.