Skip to content

Commit

Permalink
Split pinfo into pinfo, pinfo2.
Browse files Browse the repository at this point in the history
(Previously pinfo actually ran pinfo2...?)
  • Loading branch information
bfroehle committed Nov 8, 2012
1 parent e2b6c7b commit 886a3ee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions IPython/core/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,15 @@ def do_pinfo(self, arg):
The debugger interface to %pinfo, i.e., obj?."""
namespaces = [('Locals', self.curframe.f_locals),
('Globals', self.curframe.f_globals)]
self.shell.find_line_magic('pinfo')("pinfo %s" % arg,
namespaces=namespaces)
self.shell.find_line_magic('pinfo')(arg, namespaces=namespaces)

def do_pinfo2(self, arg):
"""Provide extra detailed information about an object.
The debugger interface to %pinfo2, i.e., obj??."""
namespaces = [('Locals', self.curframe.f_locals),
('Globals', self.curframe.f_globals)]
self.shell.find_line_magic('pinfo2')(arg, namespaces=namespaces)

def do_psource(self, arg):
"""Print (or run through pager) the source code for an object."""
Expand Down

0 comments on commit 886a3ee

Please sign in to comment.