Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mathics/builtin/patterns/restrictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import Optional as OptionalType, Tuple

from mathics.core.atoms import Integer, Number, Rational, Real, String
from mathics.core.attributes import A_HOLD_REST, A_PROTECTED
from mathics.core.attributes import A_HOLD_ALL, A_PROTECTED
from mathics.core.builtin import InfixOperator, PatternObject, Test
from mathics.core.evaluation import Evaluation
from mathics.core.expression import Expression
Expand Down Expand Up @@ -51,8 +51,8 @@ class Condition(InfixOperator, PatternObject):
"""

arg_counts = [2]
# Don't know why this has attribute HoldAll in Mathematica
attributes = A_HOLD_REST | A_PROTECTED
attributes = A_HOLD_ALL | A_PROTECTED

summary_text = "conditional definition"

def init(
Expand Down
Loading