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

Add module name to method show output #19162

Merged
merged 2 commits into from
Nov 1, 2016

Conversation

danielmatz
Copy link
Contributor

This came up in the discussion over in #18745. The general point of the issue was that it is hard to find where things are defined.

While which will tell you the module in which a generic function was defined, there didn't seem to be an easy way to find the module in which a specific method was defined. This pull request adds the module name to the method show output. For example:

julia> @which big(1.0) + big(2.0)
+(x::BigFloat, y::BigFloat) in Base.MPFR at mpfr.jl:224

There will probably be a few different changes proposed out of that issue. This was just an easy one to start with (assuming people like it).

@StefanKarpinski
Copy link
Sponsor Member

I like it.

@stevengj stevengj merged commit 7aba3f5 into JuliaLang:master Nov 1, 2016
@danielmatz danielmatz deleted the show_method_module branch November 1, 2016 17:47
fcard pushed a commit to fcard/julia that referenced this pull request Feb 28, 2017
* Add the method's module name to the show output

* Update tests that involve showing a method
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.

None yet

3 participants