From 1ff8ad6ceb6c272d6136dbba285831e9fb1a956d Mon Sep 17 00:00:00 2001 From: rocky Date: Thu, 26 Sep 2024 12:18:33 -0400 Subject: [PATCH] Improve a comment --- mathics/builtin/files_io/files.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mathics/builtin/files_io/files.py b/mathics/builtin/files_io/files.py index b921d54dc..3762416b1 100644 --- a/mathics/builtin/files_io/files.py +++ b/mathics/builtin/files_io/files.py @@ -361,7 +361,11 @@ class Get(PrefixOperator): def eval(self, path: String, evaluation: Evaluation, options: dict): "Get[path_String, OptionsPattern[Get]]" + # Make sure to pick up copy from module each time instead of using + # use "from ... import DEFAULT_TRACE_FN" which will not pick + # up run-time changes made to the module function. trace_fn = mathics.eval.files_io.files.DEFAULT_TRACE_FN + trace_get = evaluation.parse("Settings`$TraceGet") if ( options["System`Trace"].to_python()