#16156: Support renaming of Functor (define _repr_(), not __repr__())
--------------------------+---------------------------------
   Reporter:  pbruin      |            Owner:
       Type:  task        |           Status:  new
   Priority:  minor       |        Milestone:  sage-6.2
  Component:  categories  |         Keywords:  repr renaming
  Merged in:              |          Authors:  Peter Bruin
  Reviewers:              |  Report Upstream:  N/A
Work issues:              |           Branch:
     Commit:              |     Dependencies:
   Stopgaps:              |
--------------------------+---------------------------------
 The class `Functor` and some of its subclasses define a `__repr__()`
 method which doesn't support renaming:
 {{{
 sage: F=IdentityFunctor(Rings())
 sage: F
 The identity functor on Category of rings
 sage: F.rename('I')
 sage: F
 The identity functor on Category of rings
 }}}
 This ticket moves these methods to `_repr_()` so the standard
 `SageObject.__repr__()` is used, which makes renaming work at least for
 Python classes.

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