ipython/ipython — pull request #4382 by jtratner (2013-10-12 00:15:27+00:00)
Title: Use safe_hasattr in dir2

Add test cases

Move safe_hasattr to utils/dir2

Fixes #4381 (and helps out pydata/pandas#5182)