#19225: cartesian product of algebra has troubles with base_ring
------------------------------+------------------------
       Reporter:  dkrenn      |        Owner:
           Type:  defect      |       Status:  new
       Priority:  major       |    Milestone:  sage-6.9
      Component:  categories  |   Resolution:
       Keywords:              |    Merged in:
        Authors:              |    Reviewers:
Report Upstream:  N/A         |  Work issues:
         Branch:              |       Commit:
   Dependencies:              |     Stopgaps:
------------------------------+------------------------

Comment (by dkrenn):

 {{{
 --- a/src/sage/structure/category_object.pyx
 +++ b/src/sage/structure/category_object.pyx
 @@ -623,10 +623,6 @@ cdef class CategoryObject(sage_object.SageObject):
              category) so as not to pollute the namespace of all
              category objects.
          """
 +        try:
 +            return super(CategoryObject, self).base_ring()
 +        except AttributeError:
 +            pass
          return self._base
 }}}
 solves this bug, but then
 {{{
 File "src/sage/categories/homset.py", line 596, in
 sage.categories.homset.Homset.__init__
 Failed example:
     MyHomset(ZZ^3, ZZ^3, base = QQ).base_ring()
 Expected:
     Rational Field
 Got:
     Integer Ring
 }}}

 {{{
 File "src/sage/categories/modules.py", line 519, in
 sage.categories.modules.Modules.Homsets.ParentMethods.base_ring
 Failed example:
     H.base_ring.__module__
 Expected nothing
 Got:
     'sage.categories.modules'
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/19225#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 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.

Reply via email to