#17453: fix category for integer mod rings
-------------------------------------+-------------------------------------
Reporter: bhutz | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.5
Component: categories | Resolution:
Keywords: | Merged in:
Authors: Travis Scrimshaw | Reviewers: Ben Hutz
Report Upstream: N/A | Work issues:
Branch: | Commit:
public/categories/integer_mod_rings-17453|
fb6910891aee3c3edf182505fb5e5391ab636f40
Dependencies: #17501 | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by bhutz):
* status: needs_review => needs_work
* reviewer: => Ben Hutz
Comment:
This does appear to fix the category issues for integer_mod_rings. But
there is one minor issue and something I'm not sure about which is
probably just my lack of knowledge.
The minor issue is a doc test failure in
sage/rings/finite_rings/integer_mod_rings.py. It is just a typo where the
expected value should be `True` but `False` was put in the doctest for
`Zmod(5)`.
{{{
File "src/sage/rings/finite_rings/integer_mod_ring.py", line 666, in
sage.rings.finite_rings.integer_mod_ring.IntegerModRing_generic.is_integral_domain
Failed example:
R in IntegralDomains()
Expected:
False
Got:
True
}}}
The part that is not clear to me is why in `_contains_helper(cls)` you are
able to use `cls` as a callable object as
`Category_contains_method_by_parent_class(cls())`. Isn't `cls` something
like `Zmod(7)`?
--
Ticket URL: <http://trac.sagemath.org/ticket/17453#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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.