Skip to content

Commit

Permalink
Docs: replace 'definition header' with 'call signature'
Browse files Browse the repository at this point in the history
  • Loading branch information
bfroehle committed Nov 12, 2012
1 parent 886a3ee commit aada9c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion IPython/core/debugger.py
Expand Up @@ -477,7 +477,7 @@ def do_list(self, arg):
do_l = do_list

def do_pdef(self, arg):
"""Print the definition header for any callable object.
"""Print the call signature for any callable object.
The debugger interface to %pdef"""
namespaces = [('Locals', self.curframe.f_locals),
Expand Down
2 changes: 1 addition & 1 deletion IPython/core/magics/namespace.py
Expand Up @@ -69,7 +69,7 @@ def pinfo2(self, parameter_s='', namespaces=None):
@skip_doctest
@line_magic
def pdef(self, parameter_s='', namespaces=None):
"""Print the definition header for any callable object.
"""Print the call signature for any callable object.
If the object is a class, print the constructor information.
Expand Down
4 changes: 2 additions & 2 deletions IPython/core/oinspect.py
Expand Up @@ -344,7 +344,7 @@ def __init__(self, color_table=InspectColors,
self.set_active_scheme(scheme)

def _getdef(self,obj,oname=''):
"""Return the definition header for any callable object.
"""Return the call signature for any callable object.
If any exception is generated, None is returned instead and the
exception is suppressed."""
Expand Down Expand Up @@ -373,7 +373,7 @@ def noinfo(self, msg, oname):
print()

def pdef(self, obj, oname=''):
"""Print the definition header for any callable object.
"""Print the call signature for any callable object.
If the object is a class, print the constructor information."""

Expand Down
2 changes: 1 addition & 1 deletion docs/source/interactive/reference.txt
Expand Up @@ -337,7 +337,7 @@ this is just a summary:
* **%pdoc <object>**: Print (or run through a pager if too long) the
docstring for an object. If the given object is a class, it will
print both the class and the constructor docstrings.
* **%pdef <object>**: Print the definition header for any callable
* **%pdef <object>**: Print the call signature for any callable
object. If the object is a class, print the constructor information.
* **%psource <object>**: Print (or run through a pager if too long)
the source code for an object.
Expand Down

0 comments on commit aada9c8

Please sign in to comment.