Skip to content
Merged
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
5 changes: 4 additions & 1 deletion mathics/eval/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ def print_evaluate(expr, evaluation, status: str, fn: Callable, orig_expr=None):
expr = expr[0]
elif not evaluation.definitions.trace_evaluation:
return
evaluation.print_out(f"{indents}{status}: {orig_expr} = " + str(expr))
expr_str = str(expr)
if status == "Replacing" and orig_expr == expr_str:
return
evaluation.print_out(f"{indents}{status}: {orig_expr} = {expr_str}")

elif not is_performing_rewrite(fn):
if not evaluation.definitions.trace_evaluation:
Expand Down
Loading