Skip to content

Commit

Permalink
More summary adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Jul 11, 2023
1 parent f18ebbd commit aa9e1fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions mathics/builtin/exp_structure/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class Depth(Builtin):
= 2
"""

summary_text = "the maximum number of indices to specify any part"
summary_text = "get maximum number of indices to specify any part"

def eval(self, expr, evaluation: Evaluation):
"Depth[expr_]"
Expand Down Expand Up @@ -295,7 +295,7 @@ class Level(Builtin):
options = {
"Heads": "False",
}
summary_text = "parts specified by a given number of indices"
summary_text = "get parts specified by a given number of indices"

def eval(self, expr, ls, evaluation, options={}):
"Level[expr_, ls_, OptionsPattern[Level]]"
Expand Down Expand Up @@ -337,7 +337,7 @@ class Null(Predefined):
= #<--#
"""

summary_text = "implicit result for expressions that does not yield a result"
summary_text = "implicit result for expressions that do not yield a result"


class Operate(Builtin):
Expand Down Expand Up @@ -417,7 +417,7 @@ class Order(Builtin):
<dl>
<dt>'Order[$x$, $y$]'
<dd>returns a number indicating the canonical ordering of $x$ and $y$. \
1 indicates that $x$ is before $y$, \-1 that $y$ is before $x$. \
1 indicates that $x$ is before $y$, and -1 that $y$ is before $x$. \
0 indicates that there is no specific ordering. Uses the same order \
as 'Sort'.
</dl>
Expand All @@ -435,7 +435,7 @@ class Order(Builtin):
= 0
"""

summary_text = "canonical ordering of expressions"
summary_text = "order expressions"

def eval(self, x, y, evaluation: Evaluation):
"Order[x_, y_]"
Expand Down
7 changes: 4 additions & 3 deletions mathics/builtin/exp_structure/size_and_sig.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ByteCount(Builtin):
The results may heavily depend on the Python implementation in use.
"""

summary_text = "amount of memory used by expr, in bytes"
summary_text = "get the amount of memory used by expr, in bytes"

def eval(self, expression, evaluation: Evaluation):
"ByteCount[expression_]"
Expand All @@ -71,7 +71,8 @@ class Hash(Builtin):
<dt>'Hash[$expr$, $type$]'
<dd>returns an integer hash of the specified $type$ for the given $expr$.
<dd>The types supported are "MD5", "Adler32", "CRC32", "SHA", "SHA224", "SHA256", "SHA384", and "SHA512".
<dd>The types supported are "MD5", "Adler32", "CRC32", "SHA", "SHA224", \
"SHA256", "SHA384", and "SHA512".
<dt>'Hash[$expr$, $type$, $format$]'
<dd>Returns the hash in the specified format.
Expand Down Expand Up @@ -180,7 +181,7 @@ class LeafCount(Builtin):
messages = {
"argx": "LeafCount called with `1` arguments; 1 argument is expected.",
}
summary_text = "the total number of atomic subexpressions"
summary_text = "get the total number of atomic subexpressions"

def eval(self, expr, evaluation: Evaluation):
"LeafCount[expr___]"
Expand Down

0 comments on commit aa9e1fc

Please sign in to comment.