5a8afe8256c9586a9dff05e4c16b69d53f5857ae,mathics/builtin/inout.py,On,apply,#On#Any#Any#,1338

Before Change


                symb_name = symb.get_name()
                msg_string = msg.get_string_value()
                if not (symb_name is None or msg_string is None):
                    evaluation.quiet_messages.discard((symb_name, msg_string))
                    continue
            evaluation.message("Message", "name", e)
        return Symbol("Null")

After Change


        "On[expr___]"

        seq = expr.get_sequence()
        quiet_messages = set(evaluation.get_quiet_messages())

        if not seq:
            // TODO On[s::trace] for all symbols
            return

        for e in seq:
            if isinstance(e, Symbol):
                quiet_messages.discard(Expression("MessageName", e, String("trace")))
            elif check_message(e):
                quiet_messages.discard(e)
            else:
                evaluation.message("Message", "name", e)
            evaluation.set_quiet_messages(quiet_messages)
        return Symbol("Null")


class MessageName(BinaryOperator):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


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: Off
Method Name: apply