title: how to print source code of object I defined use %edit magic
body: <p>Ipython 0.13.1 can print the source of an object from python library,<br>
  such as, os.path.abspath??<br>
  But I can't print the source code of any object I defined through %ed magic in ipython,<br>
  Is anything wrong I did?<br>
  such as, I define a class Name through %ed magic:</p>
  
  <pre><code>%ed  
  </code></pre>
  
  <p>then  </p>
  
  <pre><code>class Name(object):
      """docstring for Name"""
      name = 'hong'
      def __init__(self, arg):
          super(Name, self).__init__()
          self.arg = arg
      def pri():
          print 'class Name'
  </code></pre>
  
  <p>when back to ipython, I can't see the source code of class Name:</p>
  
  <pre><code>In [59]: Name??
  Type:       type
  String Form:&lt;class '__main__.Name'&gt;
  Docstring:  docstring for Name
  Constructor information:
  Definition:Name(self, arg)
  </code></pre>
  
  <p>Is this the bug of IPython?</p>