#8800: Doctest coverage of categories
--------------------------+-------------------------------------------------
   Reporter:  SimonKing   |       Owner:  Simon King         
       Type:  defect      |      Status:  new                
   Priority:  major       |   Milestone:  sage-4.4.2         
  Component:  categories  |    Keywords:  categories doctests
     Author:  Simon King  |    Upstream:  N/A                
   Reviewer:              |      Merged:                     
Work_issues:              |  
--------------------------+-------------------------------------------------

Comment(by SimonKing):

 The next one:
 {{{
 sage: F = FreeModule(ZZ,3).construction()[0]
 sage: F
 VectorFunctor
 sage: F.domain()
 Category of objects
 sage: F.codomain()
 Category of objects
 sage: Set([1,2,3]) in F.domain()
 True
 sage: F(Set([1,2,3]))
 Traceback (most recent call last):
 ...
 AttributeError: 'Set_object_enumerated' object has no attribute
 'is_commutative'
 }}}

 Since the functor calls the ``FreeModule`` constructor, and since this
 constructor expects a commutative ring, the Vector functor should go from
 the category of commutative rings to the category of commutative additive
 groups (since the category of modules requires naming a base ring).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8800#comment:9>
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.

Reply via email to