Skip to content

Improve documentation for word objects #8266

@seblabbe

Description

@seblabbe

Documentation of words and word objects contains only pickle tests and lacks good examples :

sage: words?
...
Docstring:
    
        A class consisting of constructors for several famous words.
        
        TESTS::
    
            sage: from sage.combinat.words.word_generators import WordGenerator
            sage: MyWordBank = WordGenerator()
            sage: type(loads(dumps(MyWordBank)))
            <class 'sage.combinat.words.word_generators.WordGenerator'>
sage: w = Word(range(5))
sage: w?
...
Docstring:
    
        TESTS::
    
            sage: w = Word([0,1,1,0])
            sage: w == loads(dumps(w))
            True

CC: @sagetrac-abmasse

Component: documentation

Author: Sébastien Labbé

Reviewer: Alexandre Blondin Massé

Merged: sage-4.3.4.alpha1

Issue created by migration from https://trac.sagemath.org/ticket/8266

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions