MCPcopy Index your code
hub / github.com/ipython/ipython / pdef

Method pdef

IPython/core/magics/namespace.py:71–83  ·  view source on GitHub ↗

Print the call signature for any callable object. If the object is a class, print the constructor information. Examples -------- :: In [3]: %pdef urllib.urlopen urllib.urlopen(url, data=None, proxies=None)

(self, parameter_s='', namespaces=None)

Source from the content-addressed store, hash-verified

69 @skip_doctest
70 @line_magic
71 def pdef(self, parameter_s='', namespaces=None):
72 """Print the call signature for any callable object.
73
74 If the object is a class, print the constructor information.
75
76 Examples
77 --------
78 ::
79
80 In [3]: %pdef urllib.urlopen
81 urllib.urlopen(url, data=None, proxies=None)
82 """
83 self.shell._inspect('pdef',parameter_s, namespaces)
84
85 @line_magic
86 def pdoc(self, parameter_s='', namespaces=None):

Callers

nothing calls this directly

Calls 1

_inspectMethod · 0.80

Tested by

no test coverage detected