Permalink
Browse files

Wrote two examples for 'pdef'

Work done as a team by:
   -- V Sowjanya <hai.sowjanya@gmail.com>
   -- N Rajender Reddy <raj.rajender007@gmail.com>
   -- R Srikanth <sri.rajan143@gmail.com>
  • Loading branch information...
1 parent aac03fd commit 3911f0a9ccfa6db3015d4236635b6e20df67ebd1 @vsowjanya committed Dec 18, 2010
Showing with 13 additions and 1 deletion.
  1. +13 −1 IPython/core/magic.py
View
14 IPython/core/magic.py
@@ -578,7 +578,19 @@ def magic_pinfo2(self, parameter_s='', namespaces=None):
def magic_pdef(self, parameter_s='', namespaces=None):
"""Print the definition header for any callable object.
- If the object is a class, print the constructor information."""
+ If the object is a class, print the constructor information.
+
+ Examples
+ --------
+ In [6]: %pdef hist
+ hist(self, parameter_s='')
+
+ In [7]: %pdef pinfo
+ pinfo(self, parameter_s='', namespaces=None)
+
+
+
+ """
self._inspect('pdef',parameter_s, namespaces)
def magic_pdoc(self, parameter_s='', namespaces=None):

0 comments on commit 3911f0a

Please sign in to comment.