diff --git a/mathics/core/builtin.py b/mathics/core/builtin.py index 269300b2d..4450f70bb 100644 --- a/mathics/core/builtin.py +++ b/mathics/core/builtin.py @@ -468,6 +468,8 @@ def get_functions(self, prefix="eval", is_pymodule=False): for name in dir(self): if name.startswith(prefix): function = getattr(self, name) + if not hasattr(function, "__call__"): + continue pattern = function.__doc__ if pattern is None: # Fixes PyPy bug continue