##// END OF EJS Templates
Wrote an example for 'pdef'...
vankayala sowjanya -
Show More
@@ -578,7 +578,15 b' Currently the magic system has the following functions:\\n"""'
578 def magic_pdef(self, parameter_s='', namespaces=None):
578 def magic_pdef(self, parameter_s='', namespaces=None):
579 """Print the definition header for any callable object.
579 """Print the definition header for any callable object.
580
580
581 If the object is a class, print the constructor information."""
581 If the object is a class, print the constructor information.
582
583 Examples
584 --------
585 ::
586
587 In [3]: %pdef urllib.urlopen
588 urllib.urlopen(url, data=None, proxies=None)
589 """
582 self._inspect('pdef',parameter_s, namespaces)
590 self._inspect('pdef',parameter_s, namespaces)
583
591
584 def magic_pdoc(self, parameter_s='', namespaces=None):
592 def magic_pdoc(self, parameter_s='', namespaces=None):
General Comments 0
You need to be logged in to leave comments. Login now