ipython/ipython — pull request #1729 by takluyver (2012-05-12 20:41:24+00:00)
Title: Catch failure in repr() for %whos

As recently reported on the mailing list, an object whose repr() fails catches out %whos. This catches the error and uses a fallback representation.