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

Catch some pathological cases inside oinspect #3484

Merged
merged 1 commit into from Jul 1, 2013

Conversation

takluyver
Copy link
Member

Third party code that overrides attribute access can mess up some of our introspection code, because hasattr() since Python 3.2 only catches AttributeError. This uses a safe_hasattr function, which will catch any exception raised by attribute access.

Closes #2577

@minrk
Copy link
Member

minrk commented Jun 29, 2013

👍

ellisonbg added a commit that referenced this pull request Jul 1, 2013
Catch some pathological cases inside oinspect
@ellisonbg ellisonbg merged commit e95c296 into ipython:master Jul 1, 2013
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Catch some pathological cases inside oinspect
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.

sh.py and ipython for python 3.3
3 participants