Skip to content

Commit acf3c0d

Browse files
authored
Merge pull request #589 from Mathics3/split-forms-into-builtin-module
Split out builtin/forms.py into a module
2 parents 33b250c + 64dcd85 commit acf3c0d

12 files changed

Lines changed: 1292 additions & 1237 deletions

File tree

mathics/builtin/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def sanity_check(cls, module):
218218
"drawing",
219219
"fileformats",
220220
"files_io",
221+
"forms",
221222
"functional",
222223
"intfns",
223224
"list",

mathics/builtin/box/layout.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@
2121
from mathics.core.expression import Expression
2222
from mathics.core.list import ListExpression
2323
from mathics.core.symbols import Symbol, SymbolMakeBoxes
24-
from mathics.core.systemsymbols import SymbolRowBox, SymbolStandardForm
25-
26-
SymbolFractionBox = Symbol("System`FractionBox")
27-
SymbolSubscriptBox = Symbol("System`SubscriptBox")
28-
SymbolSubsuperscriptBox = Symbol("System`SubsuperscriptBox")
29-
SymbolSuperscriptBox = Symbol("System`SuperscriptBox")
30-
SymbolSqrtBox = Symbol("System`SqrtBox")
24+
from mathics.core.systemsymbols import (
25+
SymbolFractionBox,
26+
SymbolRowBox,
27+
SymbolSqrtBox,
28+
SymbolStandardForm,
29+
SymbolSubsuperscriptBox,
30+
SymbolSubscriptBox,
31+
SymbolSuperscriptBox,
32+
)
3133

3234

3335
# this temporarily replaces the _BoxedString class
@@ -165,8 +167,7 @@ class InterpretationBox(BoxExpression):
165167
"""
166168
<dl>
167169
<dt>'InterpretationBox[{...}, expr]'
168-
<dd> is a low-level box construct that displays as
169-
boxes but is interpreted on input as expr.
170+
<dd> is a low-level box construct that displays as boxes, but is interpreted on input as expr.
170171
</dl>
171172
172173
>> A = InterpretationBox["Pepe", 4]

0 commit comments

Comments
 (0)