5a8afe8256c9586a9dff05e4c16b69d53f5857ae,mathics/builtin/inout.py,Off,apply,#Off#Any#Any#,1291
Before Change
if isinstance(e, Symbol):
evaluation.quiet_messages.add((e.get_name(), "trace"))
continue
elif e.has_form("MessageName", 2):
symb, msg = e.get_leaves()
symb_name = symb.get_name()
msg_string = msg.get_string_value()
After Change
"Off[expr___]"
seq = expr.get_sequence()
quiet_messages = set(evaluation.get_quiet_messages())
if not seq:
// TODO Off[s::trace] for all symbols
return
for e in seq:
if isinstance(e, Symbol):
quiet_messages.add(Expression("MessageName", e, String("trace")))
elif check_message(e):
quiet_messages.add(e)
else:
evaluation.message("Message", "name", e)
evaluation.set_quiet_messages(quiet_messages)
return Symbol("Null")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: mathics/Mathics
Commit Name: 5a8afe8256c9586a9dff05e4c16b69d53f5857ae
Time: 2016-08-08
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/inout.py
Class Name: Off
Method Name: apply
Project Name: mathics/Mathics
Commit Name: 5a8afe8256c9586a9dff05e4c16b69d53f5857ae
Time: 2016-08-08
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/inout.py
Class Name: Quiet
Method Name: apply
Project Name: mathics/Mathics
Commit Name: 5a8afe8256c9586a9dff05e4c16b69d53f5857ae
Time: 2016-08-08
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/inout.py
Class Name: On
Method Name: apply