#10667: Morphisms and Objects of Categories
---------------------------+------------------------------------------------
   Reporter:  SimonKing    |          Owner:  nthiery                      
       Type:  enhancement  |         Status:  needs_work                   
   Priority:  major        |      Milestone:  sage-5.0                     
  Component:  categories   |       Keywords:  objects morphisms containment
Work_issues:  doctests     |       Upstream:  N/A                          
   Reviewer:               |         Author:  Simon King                   
     Merged:               |   Dependencies:  #9138, #11115                
---------------------------+------------------------------------------------

Comment(by SimonKing):

 Perhaps a related question: In sage/categories/rings.py, we have
 {{{
 #!python
     class HomCategory(HomCategory):
         class ParentMethods:
             def __new__(cls, X, Y, category):
                 from sage.rings.homset import RingHomset
                 return RingHomset(X, Y, category = category)
             def __getnewargs__(self):
                 return (self.domain(), self.codomain(), self.category())
 }}}

 Wouldn't it be possible to simply have
 {{{
 #!python
     class HomCategory(HomCategory):
         class ParentMethods(RingHomset):
             pass
 }}}
 ?

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