ipython/ipython — pull request #1309 by ivanov (2012-01-21 08:15:34+00:00)
Title: Inoculate %clear magic provided my clearcmd extension

I have restored the functionality of this quarantined module, added new tests for it and polished it a bit.

Specifically, the `%clear` completions did not previously advertise the `array` argument option, and `clear in` did not clear `_i`, `_ii`, and `_iii` - both of these are now fixed.

I did not provide explicit tests for the `shadow_compress` and `shadow_nuke` options, as I'm not sure what a sensible and safe way of verifying their functionality would be.