On Mon, Mar 23, 2009 at 4:30 PM, Martin Albrecht <[email protected]> wrote: > > This belongs on [sage-support] and thus I'm CCing my answer there (also, David > Kohel reads [sage-support] IIRC) > > This seems to be the right way of doing it: > > sage: S = AlphabeticStrings() > sage: E = SubstitutionCryptosystem(S) > sage: K = S('MHKENLQSCDFGBIAYOUTZXJVWPR') > sage: K > MHKENLQSCDFGBIAYOUTZXJVWPR > sage: type(K) > <class 'sage.monoids.string_monoid_element.StringMonoidElement'> > > I agree that the difference between the two toplevel imports (or lack thereof) > is somewhat inconsistent, but I guess the reason is that > PermutationGroupElements are much more used than StringMonoidElements.
You might also find ticket #5529 helpful here. -- Regards Minh Van Nguyen --~--~---------~--~----~------------~-------~--~----~ 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-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
