#10261: Improve documentation for word (over str vs over integer)
-----------------------------+----------------------------------------------
Reporter: slabbe | Owner: slabbe
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.6.1
Component: documentation | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
As noticed by Florent Hivert [http://groups.google.com/group/sage-
combinat-devel/browse_thread/thread/b24d16504611c73f here], the following
two objects :
{{{
sage: w = Word('010120')
sage: z = Word([0, 1, 0, 1, 2, 0])
}}}
have the same string representation :
{{{
sage: w
word: 010120
sage: z
word: 010120
}}}
but are not equal :
{{{
sage: w == z
False
}}}
Indeed, w and z are defined on different alphabet :
{{{
sage: w[2]
'0'
sage: z[2]
0
}}}
Documentation about this should be improved.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10261>
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.