#20009: string monoid class one not defined
-------------------------------------+-------------------------------------
Reporter: kcrisman | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-7.1
Component: algebra | Resolution:
Keywords: | Merged in:
Authors: Karan Desai | Reviewers: Karl-Dieter Crisman,
Report Upstream: N/A | Thierry Monteil
Branch: | Work issues:
u/karandesai-96/string_monoid_class_one_not_defined| Commit:
Dependencies: | 4b9c7394508ba2cb83405fd2a44c05e5b650c7ab
| Stopgaps:
-------------------------------------+-------------------------------------
Comment (by tmonteil):
Replying to [comment:10 karandesai-96]:
> The identity element might be required somewhere else, so I thought let
it be declared as a member of the class, though for now I'll move it
locally.
Let me suggest not doing things unless you actually need it, since this
make some noise in the source code. Also, since no other monoid has such
an attribute, it is likely that if someone once needs something like that,
she will create an attribute with another name higher in the hierarchy,
and the information will be stored twice. I guess that if someone needs
the identity element, she will just call self.one() since it is the
standard notation for monoids within Sage.
--
Ticket URL: <http://trac.sagemath.org/ticket/20009#comment:11>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.