Show More
@@ -79,7 +79,7 b' class NamespaceMagics(Magics):' | |||||
79 | In [3]: %pdef urllib.urlopen |
|
79 | In [3]: %pdef urllib.urlopen | |
80 | urllib.urlopen(url, data=None, proxies=None) |
|
80 | urllib.urlopen(url, data=None, proxies=None) | |
81 | """ |
|
81 | """ | |
82 | self._inspect('pdef',parameter_s, namespaces) |
|
82 | self.shell._inspect('pdef',parameter_s, namespaces) | |
83 |
|
83 | |||
84 | @line_magic |
|
84 | @line_magic | |
85 | def pdoc(self, parameter_s='', namespaces=None): |
|
85 | def pdoc(self, parameter_s='', namespaces=None): | |
@@ -87,12 +87,12 b' class NamespaceMagics(Magics):' | |||||
87 |
|
87 | |||
88 | If the given object is a class, it will print both the class and the |
|
88 | If the given object is a class, it will print both the class and the | |
89 | constructor docstrings.""" |
|
89 | constructor docstrings.""" | |
90 | self._inspect('pdoc',parameter_s, namespaces) |
|
90 | self.shell._inspect('pdoc',parameter_s, namespaces) | |
91 |
|
91 | |||
92 | @line_magic |
|
92 | @line_magic | |
93 | def psource(self, parameter_s='', namespaces=None): |
|
93 | def psource(self, parameter_s='', namespaces=None): | |
94 | """Print (or run through pager) the source code for an object.""" |
|
94 | """Print (or run through pager) the source code for an object.""" | |
95 | self._inspect('psource',parameter_s, namespaces) |
|
95 | self.shell._inspect('psource',parameter_s, namespaces) | |
96 |
|
96 | |||
97 | @line_magic |
|
97 | @line_magic | |
98 | def pfile(self, parameter_s=''): |
|
98 | def pfile(self, parameter_s=''): | |
@@ -108,7 +108,7 b' class NamespaceMagics(Magics):' | |||||
108 | viewer.""" |
|
108 | viewer.""" | |
109 |
|
109 | |||
110 | # first interpret argument as an object name |
|
110 | # first interpret argument as an object name | |
111 | out = self._inspect('pfile',parameter_s) |
|
111 | out = self.shell._inspect('pfile',parameter_s) | |
112 | # if not, try the input as a filename |
|
112 | # if not, try the input as a filename | |
113 | if out == 'not found': |
|
113 | if out == 'not found': | |
114 | try: |
|
114 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now