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)
| 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): |