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

pinfo code duplication #443

Merged
merged 4 commits into from May 17, 2011
Merged

pinfo code duplication #443

merged 4 commits into from May 17, 2011

Conversation

takluyver
Copy link
Member

I found that in core/oinspect, the info and pinfo methods had largely identical code. With this change, pinfo calls info, and then simply takes care of formatting the result for display.

@fperez
Copy link
Member

fperez commented May 16, 2011

Quick question: do we have any tests that exercise this codepath? If not, it would be a good idea to add one now as we go over this. Regarding the code itself, I don't see any problems, and this kind of duplication removal is always a net win.

@takluyver
Copy link
Member Author

There were some tests that covered part of it, specifically the function on top of it that generates the text for tooltips. I've added a more detailed test of the .info() method. I haven't tried to test pinfo, because that's largely just formatting now.

@fperez
Copy link
Member

fperez commented May 17, 2011

Excellent, merge away!

@takluyver takluyver merged commit ab70883 into ipython:master May 17, 2011
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

2 participants