From 1d438e683a8e15ab9bf0b735dccb6353a469df1b 2011-02-15 19:07:59 From: vankayala sowjanya Date: 2011-02-15 19:07:59 Subject: [PATCH] Wrote an example for 'pdef' Work done as a team by: -- V Sowjanya -- N Rajender Reddy -- R Srikanth --- diff --git a/IPython/core/magic.py b/IPython/core/magic.py index 0492d10..571ce00 100644 --- a/IPython/core/magic.py +++ b/IPython/core/magic.py @@ -578,7 +578,15 @@ Currently the magic system has the following functions:\n""" 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 [3]: %pdef urllib.urlopen + urllib.urlopen(url, data=None, proxies=None) + """ self._inspect('pdef',parameter_s, namespaces) def magic_pdoc(self, parameter_s='', namespaces=None):