Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Incorrect method displayed in %psource #240

jlfwong opened this Issue Jan 7, 2011 · 1 comment


None yet
2 participants

jlfwong commented Jan 7, 2011

Given this:

def decorator(fcn):
    return fcn

class Hello(object):
    def bar(): 
        print "bar"

    def foo(self): 
        print "foo"

%psource misreports

In [25]: %psource Hello.foo
    def bar():
        print "bar"

In [26]: %psource Hello.bar
def decorator(fcn):
    return fcn

Using IPython 0.10.1


takluyver commented Mar 23, 2011

Can't replicate on IPython 0.10 or trunk, with Python 2.6.6. Closing for now, reopen if you can replicate in trunk.

@takluyver takluyver closed this Mar 23, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment