#4653: Merge sage-words code into Sage
---------------------------+------------------------------------------------
Reporter: saliola | Owner: saliola
Type: enhancement | Status: assigned
Priority: major | Milestone: sage-3.2.2
Component: combinatorics | Resolution:
Keywords: sage-combinat |
---------------------------+------------------------------------------------
Comment (by saliola):
Replying to [comment:9 slabbe]:
>
> > I will change it, but I need a better name. Perhaps WordExamples or
WordConstructor? That has the benefit of showing up in tab-completion.
>
> Instead of the actual 'words', a suggestion could be 'lexicon' or
'wordbook' (I prefer the latter but I'm still not convinced).
I really like the idea of putting everything under "words", so that all
the functionality is available using tab completion:
{{{
sage: words.[tab]
words.Alphabet
words.Examples
words.Morphism
words.Word
words.Words
}}}
Then one can do:
{{{
sage: words.examples.ThueMorseWord()
}}}
See finance.[tab] for a working example.
I also propose loading Words and Word into the global name space, in which
case Words would be an alias for words (so words("ab") is the
combinatorial class of all words over "ab").
Since we will want to add a bunch of other objects and not necessarily
load them into the global name space (for example: Paths), this might be
the best way to proceed.
What do you think? Other suggestions? We can also wait to see what the
reviewer suggests.
Franco
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4653#comment:10>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---