Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pretty-pretting of which and methodswith output #5464

Merged
merged 1 commit into from
Jan 21, 2014

Conversation

stevengj
Copy link
Member

This patch is a continuation of #4991, for issue #4952. It uses the display functionality for which output (so that e.g. ? 1+2 will give formatted output with a link to the code in IJulia) and for methodswith.

The main semantic change is that methodswith now returns a Vector{Method} instead of just printing the methods to STDOUT as a side-effect. Not only does this allow us to use the display machinery (via new writemime methods for Vector{Method}), but it also could be useful in other contexts to have access to the list of methods found.

@ivarne
Copy link
Member

ivarne commented Jan 21, 2014

This is great! I have wondered why some of the introspection functions print instead of return the values.

JeffBezanson added a commit that referenced this pull request Jan 21, 2014
pretty-pretting of which and methodswith output
@JeffBezanson JeffBezanson merged commit 1242782 into JuliaLang:master Jan 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants