#18269: A new structure for experimentation on decoding: communication channels
-------------------------+-------------------------------------------------
Reporter: | Owner:
dlucas | Status: needs_work
Type: | Milestone: sage-6.7
enhancement | Resolution:
Priority: major | Merged in:
Component: | Reviewers: Vincent Delecroix
coding theory | Work issues:
Keywords: | Commit:
Authors: David | 2bc05906eb2db277bac427ec2ea55a47f95f1f26
Lucas | Stopgaps:
Report Upstream: N/A |
Branch: |
u/dlucas/channels |
Dependencies: |
-------------------------+-------------------------------------------------
Changes (by {'newvalue': u'David Lucas', 'oldvalue': ''}):
* status: needs_review => needs_work
* reviewer: => Vincent Delecroix
* author: => David Lucas
Comment:
Hello,
For Sage objects, you should use `_repr_` and not `__repr__`. It is useful
for example if you want to set a custom name
{{{
sage: class A(SageObject):
....: def _repr_(self):
....: return "Default repr"
sage: a = A()
Default repr
sage: a.rename('I am not me')
sage: a
I am not me
sage: a.rename(None)
sage: a
Default repr
}}}
There are two occurrences + one mention in the documentation.
Beyond that it looks good!
Vincent
--
Ticket URL: <http://trac.sagemath.org/ticket/18269#comment:20>
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.