Skip to content

Commit

Permalink
Fetch operator from JSON for assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Dec 30, 2024
1 parent 5b5a5e3 commit 4c63100
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mathics/builtin/assignments/assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ class Set(InfixOperator, _SetOperator):
"shape": "Lists `1` and `2` are not the same shape.",
}

operator = "="

summary_text = "assign a value"

def eval(self, lhs, rhs, evaluation):
Expand Down Expand Up @@ -246,7 +244,6 @@ class SetDelayed(Set):
# In Mathics, this last line would return 3
# """

operator = ":="
attributes = A_HOLD_ALL | A_PROTECTED | A_SEQUENCE_HOLD

summary_text = "test a delayed value; used in defining functions"
Expand Down Expand Up @@ -366,7 +363,6 @@ class UpSet(InfixOperator, _SetOperator):

attributes = A_HOLD_FIRST | A_PROTECTED | A_SEQUENCE_HOLD
grouping = "Right"
operator = "^="

summary_text = (
"set value and associate the assignment with symbols that occur at level one"
Expand Down Expand Up @@ -400,7 +396,6 @@ class UpSetDelayed(UpSet):
"""

attributes = A_HOLD_ALL | A_PROTECTED | A_SEQUENCE_HOLD
operator = "^:="
summary_text = "set a delayed value and associate the assignment with symbols that occur at level one"

def eval(self, lhs, rhs, evaluation):
Expand Down

0 comments on commit 4c63100

Please sign in to comment.