From: Michael Orlitzky Date: Thu, 1 Nov 2018 19:29:48 +0000 (-0400) Subject: mjo/symbol_sequence.py: fix tests to work with PYTHONPATH="." X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=9d1860e7730bde81574c1beca20fecd129002f84;p=sage.d.git mjo/symbol_sequence.py: fix tests to work with PYTHONPATH="." --- diff --git a/mjo/symbol_sequence.py b/mjo/symbol_sequence.py index cd9e02d..63c8316 100644 --- a/mjo/symbol_sequence.py +++ b/mjo/symbol_sequence.py @@ -20,6 +20,10 @@ class SymbolSequence: An iterable object containing symbolic expressions. + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES: The simplest use case:: @@ -117,6 +121,10 @@ class SymbolSequence: appropriate name and latex_name before delegating to SR.symbol(). + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES:: sage: a = SymbolSequence('a', 'alpha', 'real') @@ -147,6 +155,10 @@ class SymbolSequence: more than can be said about some of the snappier solutions of lore. + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES:: sage: a = SymbolSequence('a') @@ -177,6 +189,10 @@ class SymbolSequence: tuples. It just hands off the real work to self._subscript_foo_(). + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES: An integer argument:: @@ -215,6 +231,10 @@ class SymbolSequence: The subscript is a single integer, or something that acts like one. + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES:: sage: a = SymbolSequence('a') @@ -239,6 +259,10 @@ class SymbolSequence: first. The start/step are default for lists. We make copies of these because they're read-only. + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES:: sage: a = SymbolSequence('a') @@ -268,6 +292,10 @@ class SymbolSequence: When we have more than one level of subscripts, we pick off the first one and generate the rest recursively. + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES: A simple two-tuple::