From 0559a2e8494d548bc60130cabd2a686688da4b20 Mon Sep 17 00:00:00 2001 From: Jon Malmaud Date: Thu, 12 Jan 2017 15:48:52 -0500 Subject: [PATCH] Don't show built-in modules in whos() --- base/interactiveutil.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/interactiveutil.jl b/base/interactiveutil.jl index ddb77a589adf9..68fceb78b513d 100644 --- a/base/interactiveutil.jl +++ b/base/interactiveutil.jl @@ -667,7 +667,7 @@ Print information about exported global variables in a module, optionally restri The memory consumption estimate is an approximate lower bound on the size of the internal structure of the object. """ -function whos(io::IO=STDOUT, m::Module=current_module(), pattern::Regex=r"") +function whos(io::IO=STDOUT, m::Module=current_module(), pattern::Regex=r"^(?!.*(Base|Main|Core)).*$") maxline = displaysize(io)[2] line = zeros(UInt8, maxline) head = PipeBuffer(maxline + 1)