ipython/ipython — pull request #2028 by takluyver (2012-06-24 20:09:47+00:00)
Title: Reduce unhelpful information shown by pinfo

I've noticed recently that object introspection often shows information that's not very helpful, pushing the docstring and signature further down. In particular, 'Base Class' is redundant with 'Type' except for instances of old style classes, and 'Namespace: Interactive' is almost always the case. This clears those things up when appropriate.

I'm intending this for 0.14 now, but it's small enough that it could go into 0.13 if we want it.

Before:
```
In [2]: random.randint?
Type: instancemethod
Base Class:
String Form:>
Namespace: Interactive
File: /usr/lib/python2.7/random.py
Definition: random.randint(self, a, b)
Docstring:
Return random integer in range [a, b], including both end points.
```
After:
```
In [2]: random.randint?
Type: instancemethod
String Form:>
File: /usr/lib/python2.7/random.py
Definition: random.randint(self, a, b)
Docstring:
Return random integer in range [a, b], including both end points.
```