Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspect.getsource fails for functions defined on command line #120

Closed
cyrus- opened this issue May 18, 2010 · 1 comment
Closed

inspect.getsource fails for functions defined on command line #120

cyrus- opened this issue May 18, 2010 · 1 comment
Milestone

Comments

@cyrus-
Copy link

cyrus- commented May 18, 2010

I believe the problem is the function doesn't exist in a module for which source is available.

This is problematic for packages which parse Python source to do various things with. There is a possible ugly workaround involving detecting iPython and then going up the history and trying to find a match for the function, but I haven't tried that yet.

@minrk
Copy link
Member

minrk commented Mar 23, 2011

This is fixed in 0.11

@minrk minrk closed this as completed Mar 23, 2011
minrk pushed a commit to minrk/ipython that referenced this issue Jul 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants