#10660: Remove the "word:" identifier from the output of str method of word
-----------------------------+----------------------------------------------
Reporter: slabbe | Owner: slabbe
Type: defect | Status: new
Priority: major | Milestone: sage-4.6.2
Component: combinatorics | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Remove the "word:" identifier from the output of str method of word (and
keep it only for repr).
Indeed, this is due to a bad initial design. It is now time to fix it. The
"word:" identifier should be reserved for the `repr` method. The str
method should return only the sequence of letters.
Before, the `string_rep` was doing that job of not printing the
identifier. The problem is that things like `"... %s ..." % word` does not
call the `string_rep` but the str method which includes the identifier...
This bad design is now causing problems in other modules. For instance,
see ticket #10547 merged recently who changed the vertices of the De
Bruijn Graph from Word type to str type. I think it is now time to fix the
problem at the source (and then, put De Brujn Graph as it was before)
before it creates more problems elsewhere.
Patch to be posted soon.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10660>
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.