#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:
-------------------------+--------------------------------------------------
Comment(by aapitzsch):
In both cases the same types.
{{{
sage: H = Hom(GF(32, 'a'), GF(1024, 'b'))
sage: type(H[1])
<class 'sage.rings.finite_rings.homset.FiniteFieldHomomorphism_im_gens'>
sage: type(H)
<class 'sage.rings.finite_rings.homset.FiniteFieldHomset_with_category'>
}}}
Output of the test {{{sage: H[2:4]}}}
without patch:
{{{
[
Ring morphism:
From: Finite Field in a of size 2^5
To: Finite Field in b of size 2^10
Defn: a |--> b^8 + b^6 + b^2,
Ring morphism:
From: Finite Field in a of size 2^5
To: Finite Field in b of size 2^10
Defn: a |--> b^9 + b^7 + b^6 + b^5 + b^4
]
}}}
with patch:
{{{
[Ring morphism:
From: Finite Field in a of size 2^5
To: Finite Field in b of size 2^10
Defn: a |--> b^8 + b^6 + b^2, Ring morphism:
From: Finite Field in a of size 2^5
To: Finite Field in b of size 2^10
Defn: a |--> b^9 + b^7 + b^6 + b^5 + b^4]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12093#comment:3>
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.