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

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

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

Comments

Projects
None yet
2 participants

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.

Owner

minrk commented Mar 23, 2011

This is fixed in 0.11

@minrk minrk closed this Mar 23, 2011

minrk pushed a commit to minrk/ipython that referenced this issue Jul 1, 2013

Merge pull request #120 from minrk/figure_index_collision
band-aid to avoid figure collision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment