Skip to content

Commit

Permalink
Don't show built-in modules in whos()
Browse files Browse the repository at this point in the history
  • Loading branch information
malmaud committed Jan 12, 2017
1 parent 46c2708 commit 0559a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/interactiveutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0559a2e

Please sign in to comment.