#12093: Replace __getslice__ with functionality in __getitem__ in several files
(part 2)
-------------------------+--------------------------------------------------
Reporter: aapitzsch | Owner: GeorgSWeber
Type: defect | Status: needs_info
Priority: major | Milestone: sage-4.8
Component: build | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: André Apitzsch
Merged: | Dependencies:
-------------------------+--------------------------------------------------
Changes (by aapitzsch):
* cc: fbissey (added)
* status: new => needs_info
Old description:
> {{{__getslice__}}} has been deprecated for a long time in Python. This
> patch adds equivalent functionality to {{{__getitem__}}}, which is where
> the functionality should be.
New description:
{{{__getslice__}}} has been deprecated for a long time in Python. This
patch adds equivalent functionality to {{{__getitem__}}}, which is where
the functionality should be.
See comment:4:ticket:12041.
--
Comment:
Currently there is one failing test in
{{{"devel/sage/sage/rings/finite_rings/homset.py"}}}.
{{{
sage: H = Hom(GF(32, 'a'), GF(1024, 'b'))
sage: type(H[2:4]) # w/o patch
<class 'sage.structure.sequence.Sequence_generic'>
sage: type(H[2:4]) # w/ patch
<type 'list'>
}}}
Suggestions to solve this problem are welcome.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12093#comment:1>
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.