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

monkeypatch inspect.findsource only when we use it #5712

Merged
merged 2 commits into from Apr 25, 2014

Conversation

minrk
Copy link
Member

@minrk minrk commented Apr 23, 2014

rather than all the time, so it doesn't affect use outside IPython

closes #5710

rather than all the time, so it doesn't affect use outside IPython
@minrk
Copy link
Member Author

minrk commented Apr 23, 2014

The original bug is #1456, which appears to still be fixed after moving the monkeypatch to the context manager. It's possible that there are other affected cases, though.

@takluyver
Copy link
Member

It seems somewhat redundant to define a context manager in order to define a decorator. Can we just use one or the other?

@minrk
Copy link
Member Author

minrk commented Apr 25, 2014

Yeah, that's a bit silly. Context manager removed.

takluyver added a commit that referenced this pull request Apr 25, 2014
monkeypatch inspect.findsource in a context manager
@takluyver takluyver merged commit 3361b7e into ipython:master Apr 25, 2014
@minrk minrk changed the title monkeypatch inspect.findsource in a context manager monkeypatch inspect.findsource only when we use it Apr 26, 2014
takluyver added a commit that referenced this pull request May 7, 2014
rather than all the time, so it doesn't affect use outside IPython

closes #5710
@minrk minrk deleted the inspect.getsource-context branch July 12, 2014 17:02
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
monkeypatch inspect.findsource in a context manager
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

Successfully merging this pull request may close these issues.

inspect.findsource monkeypatch raises wrong exception for C extensions
2 participants